Queerbric / Inspecio

A Minecraft mod which adds more tooltip components to items.
https://modrinth.com/mod/inspecio
GNU Lesser General Public License v3.0
101 stars 25 forks source link

Reselect / VMT conflict #59

Open GrandPappyJay opened 2 years ago

GrandPappyJay commented 2 years ago

With Reselect (currently contains VMT) installed the Tool Tip window for Spawn Eggs flash though all the possible textures for the mob each frame... The cycling of available textures is nice but can it be done at a slower rate?

I am on 1.18.1 using reselect-0.2.0-alpha.5 and inspecio-1.2.1+1.18

Digifox03 commented 2 years ago

I suspect the reason of the constantly changing texture is that each frame the mock entity to be rendered gets a new UUID. Reselect uses the entity's UUID to seed the random generator. A possible solution is to either keep the same UUID for some period of time (e.g. one second or as long as the tooltip is open). Another solution — if the previous one is unfeasible — could be to let Reselect know that the entity is actually a mock so it can disable the randomness or handle it itself.