Merge pull request #2718 from nekosune/patch-1
Corrected CapabilityItemHandler.readNBT ignoring anything in slot 0 in 1.9
This commit is contained in:
commit
b9d18a263c
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue