
if (this.stackList[i] != null) {
invSlot = new NBTTagCompound();</BUG>
invSlot.setByte("Slot", (byte) i);
<BUG>this.stackList[i].writeToNBT(invSlot);
</BUG>
tagList.appendTag(invSlot);
}
}
tags.setTag(Const.MODID + ".Inventory", tagList);

saveNBT(tags);
}
public void saveNBT(NBTTagCompound tags) {
NBTTagList tagList = new NBTTagList();
NBTTagCompound invSlot;
for (int i = 0; i < this.inv.size(); ++i) {
if (this.inv.get(i) != null) {
invSlot = new NBTTagCompound();
invSlot.setByte("Slot", (byte) i);
this.inv.get(i).writeToNBT(invSlot);
tagList.appendTag(invSlot);
}
}
tags.setTag(Const.MODID + ".Inventory", tagList);
