-
Notifications
You must be signed in to change notification settings - Fork 141
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
World stop sending chunks #718
Comments
Before this happened my server was loading the worlds from disk and this bug didn't occur. |
The structure on each worlds was created using *World.BuildStructure() after the world variable was created on start up. |
I assume that ok here is false after 5 minutes because of this clear chunk cache every 5 minutes. So when i try to join the world after 5 minutes (chunk cache got cleared), df trying to load chunk here which world provider being NopProvider (as my world config). So it just calling provider.LoadChunk() which returning nil. That's why chunks were fine on first 5 minutes because *World.BuildStructure() load chunks into cache. |
Only if there is a way to lock chunks from clearing |
After around 5 minutes from when the server started the worlds that got created by world.Config{}.New() doesn't send the right chunks (or just an empty chunk), if there's a player staying on that world it won't break and while the others will.
Heres a vid of me from starting the server, joining every worlds to make sure they're actually loaded correctly and not doing anything and just running around in the hub.
Code to create the world.
The text was updated successfully, but these errors were encountered: