From edddd3413b6dd761ba72b22ee0e4d0fdb8ecb806 Mon Sep 17 00:00:00 2001 From: Alkalus Date: Sun, 12 Nov 2017 18:31:25 +1000 Subject: $ More small MT inventory corrections. --- .../modulartable/InventoryModularOutput.java | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/Java/gtPlusPlus/core/inventories') diff --git a/src/Java/gtPlusPlus/core/inventories/modulartable/InventoryModularOutput.java b/src/Java/gtPlusPlus/core/inventories/modulartable/InventoryModularOutput.java index 484edc2b0f..998750e3e3 100644 --- a/src/Java/gtPlusPlus/core/inventories/modulartable/InventoryModularOutput.java +++ b/src/Java/gtPlusPlus/core/inventories/modulartable/InventoryModularOutput.java @@ -80,14 +80,7 @@ public class InventoryModularOutput implements IInventory { @Override public ItemStack getStackInSlot(final int slot) { - int slotNew = 0; - if (slot >= 2){ - slotNew = (slot-9); - if (slotNew < 0 || slotNew > 2){ - slotNew = 0; - } - } - return this.inventory[slotNew]; + return this.inventory[slot]; } @Override @@ -186,17 +179,10 @@ public class InventoryModularOutput implements IInventory { */ @Override public boolean isItemValidForSlot(final int slot, final ItemStack itemstack) { - int slotNew = 0; - if (slot >= 2){ - slotNew = (slot-9); - if (slotNew < 0 || slotNew > 2){ - slotNew = 0; - } - } // Don't want to be able to store the inventory item within itself // Bad things will happen, like losing your inventory // Actually, this needs a custom Slot to work - if (slotNew == 0){ + if (slot == 0){ return TileEntityModularityTable.isValidUpgrade(itemstack); } return TileEntityModularityTable.isValidModularPiece(itemstack); -- cgit