KingContaria / seedqueue

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

Fix restoration of previews to main group #45

Closed tesselslate closed 1 month ago

tesselslate commented 1 month ago

Depending on the user's wall configuration and the value of their Background Previews setting, it is possible for SeedQueueEntries with no mainPosition to be turned into previews before those which do have mainPosition set. This causes the restoration of previews to their previous spots in the main group to fail.

Reverting the change in 3695d0f and sorting SeedQueueEntries by their mainPosition value in updatePreparingPreviews fixes the problem and ensures that previews will always be restored to the correct position in the main group.