Made Combustion engines only accept Liquid containers and Ice
This commit is contained in:
parent
2606aaccf9
commit
3f7dc90e04
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue