From 467207fd256d12b9bea55ea3c6748ee4dc14dbe4 Mon Sep 17 00:00:00 2001 From: fabricator77 Date: Wed, 21 May 2014 21:27:34 +0930 Subject: [PATCH] Fix unlimited contents bug in crated items --- forestry_common/core/forestry/core/items/ItemCrated.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forestry_common/core/forestry/core/items/ItemCrated.java b/forestry_common/core/forestry/core/items/ItemCrated.java index 8ceae8c6a..66b3eea54 100755 --- a/forestry_common/core/forestry/core/items/ItemCrated.java +++ b/forestry_common/core/forestry/core/items/ItemCrated.java @@ -52,7 +52,7 @@ public class ItemCrated extends Item implements IGenericCrate { public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer) { if (Proxies.common.isSimulating(world)) { - if (contained == null) + if (contained == null || itemstack.stackSize == 0) return itemstack; itemstack.stackSize--;