Made Combustion engines only accept Liquid containers and Ice

This commit is contained in:
Krapht 2013-05-25 09:09:50 +02:00
parent 2606aaccf9
commit 3f7dc90e04

View file

@ -404,6 +404,13 @@ public class EngineIron extends Engine {
}
return null;
}
@Override
public boolean isStackValidForSlot(int i, ItemStack itemstack) {
if (itemstack == null) return false;
if (Block.ice.blockID == itemstack.itemID) return true;
return LiquidContainerRegistry.getLiquidForFilledItem(itemstack) != null;
}
@Override
public ItemStack getStackInSlotOnClosing(int var1) {