Fix unlimited contents bug in crated items

This commit is contained in:
fabricator77 committed 2014-05-21 21:27:34 +09:30
1 parent 5772b0000a
commit 467207fd25
1 file changed
+1 -1
@@ -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--;