From dade0ad70516e04532fcbd82cca1edd2e6dd9d06 Mon Sep 17 00:00:00 2001 From: DoomFruit Date: Sat, 12 Sep 2015 13:19:47 +0100 Subject: [PATCH] Fixes issue #1029 --- .../slots/SlotMagiciansWorkbenchCrafting.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/main/java/am2/containers/slots/SlotMagiciansWorkbenchCrafting.java b/src/main/java/am2/containers/slots/SlotMagiciansWorkbenchCrafting.java index 079f87c05..ac7e7d728 100644 --- a/src/main/java/am2/containers/slots/SlotMagiciansWorkbenchCrafting.java +++ b/src/main/java/am2/containers/slots/SlotMagiciansWorkbenchCrafting.java @@ -141,17 +141,13 @@ private void doStandardDecrement(IInventory inventory, ItemStack itemstack1, int MinecraftForge.EVENT_BUS.post(new PlayerDestroyItemEvent(thePlayer, itemstack2)); itemstack2 = null; } - - if (itemstack2 != null && (itemstack1.getItem().doesContainerItemLeaveCraftingGrid(itemstack1))){ - if (inventory.getStackInSlot(i) == null){ - inventory.setInventorySlotContents(i, itemstack2); - }else{ - if (itemstack1.getItem().doesContainerItemLeaveCraftingGrid(itemstack1)){ - if (!this.thePlayer.inventory.addItemStackToInventory(itemstack2)) - this.thePlayer.dropItem(itemstack2.getItem(), itemstack2.getItemDamage()); - } - } + + if (itemstack2 != null){ + inventory.setInventorySlotContents(i, itemstack2); + }else{ + inventory.decrStackSize(i, 1); } + }else{ inventory.decrStackSize(i, 1); }