#1500 Dupe bug with infernal mobs

This commit is contained in:
tterrag1098 committed 2014-12-26 21:41:09 -05:00
1 parent 96beafa468
commit eb077f839e
1 file changed
+2 -1
@@ -131,6 +131,7 @@ public class TileKillerJoe extends AbstractMachineEntity implements IFluidHandle
return itemstack.getItem() == inventory[slot].getItem();
}
@SuppressWarnings("unchecked")
@Override
protected boolean processTasks(boolean redstoneCheckPassed) {
@@ -169,7 +170,7 @@ public class TileKillerJoe extends AbstractMachineEntity implements IFluidHandle
fakee.attackTargetEntityWithCurrentItem(ent);
useNutrient();
swingWeapon();
if(getStackInSlot(0).stackSize <= 0) {
if(getStackInSlot(0).stackSize <= 0 || fakee.getCurrentEquippedItem() == null) {
setInventorySlotContents(0, null);
}
}