From e1758f63cd9ddfe0c68648e0867de0d9982939ad Mon Sep 17 00:00:00 2001 From: mezz Date: Thu, 15 Jan 2015 21:02:24 -0800 Subject: [PATCH] Fix #455 Item duplicating by letters --- .../forestry/core/gui/ContainerItemInventory.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main/java/forestry/core/gui/ContainerItemInventory.java b/src/main/java/forestry/core/gui/ContainerItemInventory.java index 6f4f6c8d2..cc2734931 100755 --- a/src/main/java/forestry/core/gui/ContainerItemInventory.java +++ b/src/main/java/forestry/core/gui/ContainerItemInventory.java @@ -39,19 +39,6 @@ public abstract class ContainerItemInventory extends ContainerForestry { addSlotToContainer(new Slot(other, slot, x, y)); } - public void purgeBag(EntityPlayer player) { - for (int i = 0; i < inventorySlots.size() - 9 * 4; i++) { - Slot slot = (Slot) inventorySlots.get(i); - ItemStack stack = slot.getStack(); - - if (stack == null || slot.isItemValid(stack)) - continue; - - Proxies.common.dropItemPlayer(player, stack); - inventory.setInventorySlotContents(i, null); - } - } - public void saveInventory(EntityPlayer entityplayer) { if (inventory.isItemInventory) inventory.onGuiSaved(entityplayer); @@ -63,7 +50,6 @@ public abstract class ContainerItemInventory extends ContainerForestry { if (!Proxies.common.isSimulating(player.worldObj)) return; - purgeBag(player); saveInventory(player); } }