Silent's Gems

Silent's Gems

9M Downloads

Tools are discolored after breaking/repairing

SilentChaos512 opened this issue ยท 0 comments

commented

Versions

Minecraft Version: 1.12.x
Silent's Gems Version: 2.5.5 (dev)
Silent Lib Version: 2.2.9 (dev)

Problem

Tools are discolored after breaking or repairing. Broken tools let Minecraft handle the coloring to reduce texture count. But the color data is not being updated properly. Newly broken tools are white, and newly repaired tools are oversaturated.

This is fixed whenever the model cache is refreshed (every 10 minutes or when restarting Minecraft). Not sure what the best solution to this is.

(edit) I think there is an "on item craft" event. That could be a good time to reset the model cache for the item.