We can only push back the items if we are a crafting grid

This commit is contained in:
Raoul Van den Berge
2016-05-16 17:56:09 +02:00
parent 3ef8f2fc14
commit 3e58675d21

View File

@@ -203,9 +203,11 @@ public class TileGrid extends TileMachine implements IGrid {
ItemStack slot = craftingInventory.getStackInSlot(i); ItemStack slot = craftingInventory.getStackInSlot(i);
if (slot != null) { if (slot != null) {
if (getType() == EnumGridType.CRAFTING) {
if (!controller.push(slot)) { if (!controller.push(slot)) {
return; return;
} }
}
craftingInventory.setInventorySlotContents(i, null); craftingInventory.setInventorySlotContents(i, null);
} }