Corrected readNBT ignoring anything in slot 0

This commit is contained in:
Katrina Swales committed 2016-04-05 19:44:20 +01:00
1 parent c7e54b8ecc
commit f4ca1f61b9
1 file changed
+1 -1
@@ -51,7 +51,7 @@ public class CapabilityItemHandler
NBTTagCompound itemTags = tagList.getCompoundTagAt(i);
int j = itemTags.getInteger("Slot");
if (j > 0 && j < instance.getSlots())
if (j >= 0 && j < instance.getSlots())
{
itemHandlerModifiable.setStackInSlot(j, ItemStack.loadItemStackFromNBT(itemTags));
}