From ad4822465b26dc3724b35f1034cf2fc06a9a4792 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Fri, 7 Aug 2015 21:20:54 +0200 Subject: [PATCH] Dead entities don't give blood in the Smeltery. Yes, testdummies. --- src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java index 25156986..ffb2d643 100644 --- a/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java +++ b/src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java @@ -381,7 +381,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci else if (o instanceof EntityLivingBase) { EntityLivingBase living = (EntityLivingBase) o; - if (living.attackEntityFrom(new SmelteryDamageSource(), 5)) + if (!living.isDead && living.attackEntityFrom(new SmelteryDamageSource(), 5)) { if (currentLiquid + 40 < maxLiquid) {