Closed Xhamolk closed 11 years ago
Addressed in 6e61007d040b1858f0b394352dc5891b98b77167 and 218fb3b61c6c1a087bc4f134ebb795f5973a1a58.
This issue led to the creation of the basic functionality (637af3ba761ee09686dc9f704c3f3330ef2a7774) for making container work with items as well as it does with blocks/TileEntities.
Basically, make sure that the NBT is changed as soon as the inventory is changed.
Do something like InventoryPlayer.inventoryChanged, which would be changed on item sticks.
use
Item.onUpdate(ItemStack, World, Entity, int, boolean)
do check if inventoryChanged. If so, save the contents to NBT.