Fixed InventoryItemAdapter not loading properly

This commit is contained in:
bdew committed 2014-07-29 17:19:39 +03:00
1 parent 5a3fa7ef75
commit 5eef56811b
1 file changed
+1 -1
@@ -24,7 +24,7 @@ class InventoryItemAdapter(val player: EntityPlayer, val slot: Int, val size: In
def load() {
val tag = getStack.getTagCompound
for (nbtItem <- Misc.iterNbtCompoundList(tag, "tagName")) {
for (nbtItem <- Misc.iterNbtCompoundList(tag, tagName)) {
val slot = nbtItem.getByte("Slot")
if (slot >= 0 && slot < inv.size) {
inv(slot) = ItemStack.loadItemStackFromNBT(nbtItem)