1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Add core.get_mapgen_chunksize() (#16289)

This commit is contained in:
sfan5
2025-06-29 17:19:40 +02:00
committed by GitHub
parent fcbf05fc30
commit fd0ca20ce9
4 changed files with 30 additions and 3 deletions

View File

@@ -6666,6 +6666,9 @@ Environment access
of the *active* mapgen setting `"mapgen_limit"`.
* `chunksize` is an optional number. If it is absent, its value is that
of the *active* mapgen setting `"chunksize"`.
* `core.get_mapgen_chunksize()`
* Returns the currently active chunksize of the mapgen, as a vector.
The size is specified in blocks.
* `core.get_mapgen_setting(name)`
* Gets the *active* mapgen setting (or nil if none exists) in string
format with the following order of precedence: