Skip to content

fix: chunk unload bug present in vanilla#110

Open
umbrageodotus wants to merge 1 commit intoRelativityMC:ver/1.21.11from
umbrageodotus:patch-1
Open

fix: chunk unload bug present in vanilla#110
umbrageodotus wants to merge 1 commit intoRelativityMC:ver/1.21.11from
umbrageodotus:patch-1

Conversation

@umbrageodotus
Copy link
Copy Markdown

Explanation of the bug:
Clients (correctly) ignore all chunk unload packets outside view distance. The server was sending the view distance center packet before the chunk unloads. Together, that means unloads were now happening outside the view distance (calculated with the center coming from that packet), which in turn led them to not be unloaded. This fixes issues with sodium (I reckon this is the cause for the 30s loads on some servers) and fixes chunk caching and bugs related to it.

Explanation of the bug:
Clients (correctly) ignore all chunk unload packets outside view distance.
The server was sending the view distance center packet before the chunk unloads.
Together, that means unloads were now happening outside the view distance (calculated with the center coming from that packet), which in turn led them to not be unloaded.
This fixes issues with sodium (I reckon this is the cause for the 30s loads on some servers) and fixes chunk caching and bugs related to it.
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

Successfully merging this pull request may close these issues.

1 participant