mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Corrected CapabilityItemHandler.readNBT ignoring anything in slot 0 in 1.9
This commit is contained in:
1 parent
cb7685a3b0
commit
8d50c9e988
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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user