mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix IItemHandler's IStorage using nulls (#3580)
This commit is contained in:
1 parent
4b627a3672
commit
b020ea06ae
1 file changed
+1
-1
@@ -47,7 +47,7 @@ public class CapabilityItemHandler
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
ItemStack stack = instance.getStackInSlot(i);
|
||||
if (stack != null)
|
||||
if (!stack.isEmpty())
|
||||
{
|
||||
NBTTagCompound itemTag = new NBTTagCompound();
|
||||
itemTag.setInteger("Slot", i);
|
||||
|
||||
Reference in new issue
Block a user