Tool models get scrambled when new models/textures are added.
SilentChaos512 opened this issue ยท 0 comments
Whenever new part models are added, existing tools not in the players inventory will display random textures. Tools in the player's inventory have their model index updated on login. While hilarious and not at all harmful, I think I should fix this if possible.
Players, you can correct scrambled models by doing one of the following:
- Place the tool by itself in a crafting grid, then removing it from the output slot.
- Place the tool in your inventory, then relog.
Cause
Tools part models are stored in an array for quick access, which is a hash set during creation. Tools keep a list of the index of each part model in their NBT. When new part models are added, the index of all existing models is likely to change.
Not sure what the best fix would be. Obviously, this is not a serious issue, so I'm in no hurry to fix it. Performance is a big concern, so quick access to models is a necessity. I still remember the insane FPS drops when I started working on Gems 2...