Chicken-Bones / NotEnoughItems

MIT License
130 stars 136 forks source link

Client crash when loading inventory that was saved with different mod selection. #287

Open lossycrypt opened 9 years ago

lossycrypt commented 9 years ago

Version: NotEnoughItems-1.7.10-1.0.5.111-universal CodeChickenCore-1.7.10-1.0.7.47-universal

Full description with error logs: https://github.com/ReikaKalseki/Reika_Mods_Issues/issues/313

Short description: If the item map has changed since an inventory was saved, then pressing the load button crashes the client or gives wrong items.

Possible solution: Detect if the item map is unchanged before attempting to load a saved inventory. This could be done by simply saving the length of the item map and comparing, or by storing a hash of the item map / mod selection.