Working fix

This commit is contained in:
Technus committed 2017-03-22 00:04:27 +01:00
1 parent 70d1b12e18
commit 7a49754f3b
1 file changed
+8 -3
@@ -54,9 +54,14 @@ public class StencilTableLogic extends InventoryLogic implements ISidedInventory
public void setInventorySlotContents (int slot, ItemStack itemstack)
{
super.setInventorySlotContents(slot, itemstack);
if (slot == 0 && itemstack != null && StencilBuilder.isBlank(itemstack))
{
setInventorySlotContents(1, selectedStack);
if (slot == 0) {
if(itemstack != null && StencilBuilder.isBlank(itemstack)) {
super.setInventorySlotContents(1, selectedStack);
} else if(itemstack!=null) {
ItemStack cpy=itemstack.copy();
cpy.stackSize=1;
super.setInventorySlotContents(1, cpy);
}else super.setInventorySlotContents(1,null);
}
}