From 8d50c9e9884b814bf9600921cb2a9172801b440a Mon Sep 17 00:00:00 2001 From: Katrina Swales Date: Wed, 6 Apr 2016 01:43:23 +0100 Subject: [PATCH] Corrected CapabilityItemHandler.readNBT ignoring anything in slot 0 in 1.9 --- .../java/net/minecraftforge/items/CapabilityItemHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/items/CapabilityItemHandler.java b/src/main/java/net/minecraftforge/items/CapabilityItemHandler.java index 217759aae..66772a7ee 100644 --- a/src/main/java/net/minecraftforge/items/CapabilityItemHandler.java +++ b/src/main/java/net/minecraftforge/items/CapabilityItemHandler.java @@ -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)); }