diff options
| author | Alkalus <draknyte1@hotmail.com> | 2017-11-12 18:31:25 +1000 |
|---|---|---|
| committer | Alkalus <draknyte1@hotmail.com> | 2017-11-12 18:31:25 +1000 |
| commit | edddd3413b6dd761ba72b22ee0e4d0fdb8ecb806 (patch) | |
| tree | b6f942e2f079dfaed4786a4297d1a126437af960 /src/Java/gtPlusPlus/core/inventories | |
| parent | f540f49012e1e9e397cbe2820a0d7e50046e4c17 (diff) | |
| download | GT5-Unofficial-edddd3413b6dd761ba72b22ee0e4d0fdb8ecb806.tar.gz GT5-Unofficial-edddd3413b6dd761ba72b22ee0e4d0fdb8ecb806.tar.bz2 GT5-Unofficial-edddd3413b6dd761ba72b22ee0e4d0fdb8ecb806.zip | |
$ More small MT inventory corrections.
Diffstat (limited to 'src/Java/gtPlusPlus/core/inventories')
| -rw-r--r-- | src/Java/gtPlusPlus/core/inventories/modulartable/InventoryModularOutput.java | 18 |
1 files changed, 2 insertions, 16 deletions
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); |
