The piercing damage of arrows/bolts doesn't determine whether an entity has been hit anymore (since it always hits since it's unblockable)

This commit is contained in:
Bernhard Bonigl committed 2014-12-03 20:57:28 +01:00
1 parent 011298e0b8
commit d2b06da1ec
2 files changed
+2 -3

No files matched your search

@@ -101,7 +101,8 @@ public class ArrowEntity extends ProjectileBase {
//Minecraft.getMinecraft().thePlayer.sendChatMessage("Piercing Damage: " + shift);
dealtDamage |= entityHit.attackEntityFrom(damagesource, shift);
// piercing damage does not affect wether the entity was hit (return value), since it should go through always
entityHit.attackEntityFrom(damagesource, shift);
}
return dealtDamage;