-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Map generation limit: Make per-world #5440
Conversation
I think that this would be better implemented by making per-world settings, personally - as mapgen limit seems to be a setting currently, rather than a mapgen config |
Mapgen limit is a setting but should not have been, it is a fundamental mapgen parameter like water_level that causes problems when not per-world and when people forget to change the setting for each world they enter. |
In testing this works. I am not happy with how the mapgen limit setting is grabbed by passing |
Updated, need to test. |
Tested, adds the new parameter to existing worlds on update, whether the parameter is set non-default or not. |
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.
LGTM
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.
okay for me
Added docs and re-added new setting to defaultsettings.cpp (oops). |
The setting limits map generation but affects nothing else. Add 'mapgen_limit' to global mapgen parameters. Move 'blockpos_over_mapgen_limit()' to the only place it is called from: map.cpp. Allow teleportation to any part of the world even if over the set mapgen limit. Simplify the reading of this limit in mgvalleys. Remove the 'map_generation_limit' setting.
Retested and fine. |
The setting limits map generation but affects nothing else.
Add 'mapgen_limit' to global mapgen parameters.
Move 'blockpos_over_mapgen_limit()' to the only place it is called
from: map.cpp.
Allow teleportation to any part of the world even if over the set
mapgen limit.
Simplify the reading of this limit in mgvalleys.
Remove the 'map_generation_limit' setting.
//////////////////////////////////////////////
Addresses #1608
This is a new version of #4338 i have copied some of the code by SmallJoker.