We can only push back the items if we are a crafting grid
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user