mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Improve shield damage
This commit is contained in:
1 parent
52c7fc0a1a
commit
d4e50bef9d
1 file changed
+1
-1
@@ -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);
|
||||
+ }
|
||||
+ }
|
||||
|
||||
Reference in new issue
Block a user