From 70d1b12e18605fead4bcaa2a6a5be69549cead89 Mon Sep 17 00:00:00 2001 From: Technus Date: Tue, 21 Mar 2017 23:49:30 +0100 Subject: [PATCH] Revert "Probable solution" This reverts commit de0edc7d368fa8a6e722fb27d67882755e13b698. --- .../java/tconstruct/tools/logic/StencilTableLogic.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/tconstruct/tools/logic/StencilTableLogic.java b/src/main/java/tconstruct/tools/logic/StencilTableLogic.java index eb73eda2..5b7cb4c7 100644 --- a/src/main/java/tconstruct/tools/logic/StencilTableLogic.java +++ b/src/main/java/tconstruct/tools/logic/StencilTableLogic.java @@ -57,20 +57,16 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory if (slot == 0 && itemstack != null && StencilBuilder.isBlank(itemstack)) { setInventorySlotContents(1, selectedStack); - }else{ - selectedStack=null; - setInventorySlotContents(1, selectedStack); } } @Override public ItemStack decrStackSize (int slot, int quantity) { - if (slot == 1) { super.decrStackSize(0, 1); - if (inventory[0] == null || !StencilBuilder.isBlank(inventory[0])) + if (inventory[0] == null) return super.decrStackSize(slot, quantity); else return inventory[1].copy(); @@ -78,7 +74,7 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory else { ItemStack ret = super.decrStackSize(slot, quantity); - if (inventory[0] == null || !StencilBuilder.isBlank(inventory[0])) + if (inventory[0] == null) super.decrStackSize(1, 1); return ret; } @@ -151,4 +147,4 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory public void openInventory () { } -} +} \ No newline at end of file