mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Fix unlimited contents bug in crated items
This commit is contained in:
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--;
|
||||
|
||||
Reference in new issue
Block a user