Xhamolk / XACT

Xhamolk's Advanced Crafting Table. Inspired by Eloraam mod's RP2 and it's Project Table.
http://www.minecraftforum.net/topic/1551715-xact-xhamolk-s-advanced-crafting-table/
11 stars 5 forks source link

Performance and Security improvement for Chip Case (and Craft Pad ?) #48

Closed Xhamolk closed 11 years ago

Xhamolk commented 11 years ago

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.

Xhamolk commented 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.