Improve shield damage

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-03-22 14:54:21 +11:00
parent 1a03d09e14
commit 2d394c85d9

View file

@ -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);
+ }
+ }