KingContaria / seedqueue

Minecraft mod that generates multiple worlds concurrently and lets players reset them on an ingame wall screen.
MIT License
32 stars 18 forks source link

Restore positions of main group previews #34

Closed tesselslate closed 2 months ago

tesselslate commented 2 months ago

Previously, locked previews would sometimes change location when SeedQueueWallScreen was reinitialized and all of the previews were updated again. This PR makes locked previews in the main group stay in the same position even after SeedQueueWallScreen is reinitialized.

https://github.com/user-attachments/assets/91ee75ff-7cfd-4284-ba6e-fe36d1dd5976

Closes #7

KingContaria commented 2 months ago

This approach means only locked instances will have their position preserved, i think it would be better to save all instances positions. This could even simplify implementation by just setting the value in SeedQueueEntry in SeedQueueWallScreen#updateMainPreviews.