Fix IItemHandler's IStorage using nulls (#3580)

This commit is contained in:
Vincent Lee authored and LexManos committed 2017-01-11 15:16:07 -08:00
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);