mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 22:14:42 +00:00
#1500 Dupe bug with infernal mobs
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user