mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Raise max mapgen limit constant to align with mapblock size
This commit is contained in:
@@ -524,7 +524,7 @@ end
|
||||
|
||||
-- Teleports player <name> to <p> if possible
|
||||
local function teleport_to_pos(name, p)
|
||||
local lm = 31000
|
||||
local lm = 31007 -- equals MAX_MAP_GENERATION_LIMIT in C++
|
||||
if p.x < -lm or p.x > lm or p.y < -lm or p.y > lm
|
||||
or p.z < -lm or p.z > lm then
|
||||
return false, S("Cannot teleport out of map bounds!")
|
||||
|
@@ -1459,7 +1459,7 @@ max_block_generate_distance (Max block generate distance) int 10
|
||||
# Limit of map generation, in nodes, in all 6 directions from (0, 0, 0).
|
||||
# Only mapchunks completely within the mapgen limit are generated.
|
||||
# Value is stored per-world.
|
||||
mapgen_limit (Map generation limit) int 31000 0 31000
|
||||
mapgen_limit (Map generation limit) int 31007 0 31007
|
||||
|
||||
# Global map generation attributes.
|
||||
# In Mapgen v6 the 'decorations' flag controls all decorations except trees
|
||||
|
Reference in New Issue
Block a user