mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Merge pull request #23 from fabricator77/patch-2
Fix unlimited contents bug in crated items
This commit is contained in:
commit
1803acd189
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--;
|
||||
|
||||
Reference in new issue
Block a user