mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-02 21:22:05 -07:00
Improve shield damage
This commit is contained in:
@@ -466,8 +466,8 @@
|
|||||||
+
|
+
|
||||||
+ // Apply blocking code
|
+ // Apply blocking code
|
||||||
+ if (event.getDamage(DamageModifier.BLOCKING) < 0) {
|
+ if (event.getDamage(DamageModifier.BLOCKING) < 0) {
|
||||||
|
+ this.k((float) event.getDamage()); // PAIL: rename
|
||||||
+ if (damagesource.i() instanceof EntityLiving) {// 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);
|
+ ((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