-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix dead ongen saplings due to biome_lib secession #35
Conversation
A few line-too-long errors here: https://github.com/mt-mods/moretrees/actions/runs/7485615804/job/20379754526?pr=35 not sure if they should be fixed or just the min-length increased, i'm fine with both :) How rare is that use-case? Could it be something that could be done in a standalone mod perhaps (not suggesting this, just figuring out who else would have that problem too) |
Oops, that's fixed now.
I think it's a pretty rare use case, but like I said I expect to see dead saplings not just on my own server.
To elaborate a little bit further, here are two reasons why a saplings node timer may never have ran:
That would work, yes. Oh and I would like to mention that @Niklp09 gave me the idea of the LBM after he learned about me having this issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some codestyle improvements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems this issue really isnt our problem because it was caused by non standard creation of terrain, but because its locked behind a setting and not that much future code debt to maintain, whatever.
I recently updated moretrees and noticed that the ongen_saplings that were already present prior to the update never grow anymore.
This is a big thing for me because over months I slowly let the whole map surface generate, without activating the newly generated areas. So there are dead ongen saplings everywhere on the map...
The dimension of this problem is very unique to my server because of the pre-generated map, but I expect dead saplings on other publicly hosted servers as well, due to how biome_lib works (see: biome_lib_queue_ratio). There are more reasons to why an ongen saplings hasn't grown yet than a pre-generated map (eg. NodeTimer not run yet due to high lag or a server shutdown/crash).
My solution to this issue is adding a unique group to those ongen saplings and let a LBM kick them active.
Furthermore I added a setting to enable the mentioned LBM. The LBM isn't enabled per default, to not create unnecessary overhead for simple and small scale users of this mod, while providing a simple fix for people like me.