Revert "Probable solution"

This reverts commit de0edc7d36.
This commit is contained in:
Technus committed 2017-03-21 23:49:30 +01:00
1 parent 88fb8f0f3f
commit 70d1b12e18
1 file changed
+3 -7
@@ -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 ()
{
}
}
}