mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-14 11:43:48 +01:00
Improve shield damage
By: md_5 <git@md-5.net>
This commit is contained in:
parent
1a03d09e14
commit
2d394c85d9
1 changed files with 1 additions and 1 deletions
|
@ -466,8 +466,8 @@
|
|||
+
|
||||
+ // Apply blocking code
|
||||
+ if (event.getDamage(DamageModifier.BLOCKING) < 0) {
|
||||
+ this.k((float) event.getDamage()); // PAIL: rename
|
||||
+ if (damagesource.i() instanceof EntityLiving) {// PAIL: rename
|
||||
+ this.k(f); // PAIL: rename
|
||||
+ ((EntityLiving) damagesource.i()).a(EntityLiving.this, 0.5F, EntityLiving.this.locX - damagesource.i().locX, EntityLiving.this.locZ - damagesource.i().locZ);
|
||||
+ }
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue