1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Add core.get_mapgen_chunksize()

This commit is contained in:
sfan5 2025-06-27 11:31:18 +02:00
parent 2d36d32da8
commit b5daae563e
4 changed files with 29 additions and 3 deletions

View file

@ -6666,6 +6666,8 @@ 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.
* `core.get_mapgen_setting(name)`
* Gets the *active* mapgen setting (or nil if none exists) in string
format with the following order of precedence: