Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reselect / VMT conflict #59

Open
GrandPappyJay opened this issue Jan 16, 2022 · 1 comment
Open

Reselect / VMT conflict #59

GrandPappyJay opened this issue Jan 16, 2022 · 1 comment

Comments

@GrandPappyJay
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants