mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Raise max mapgen limit constant to align with mapblock size
This commit is contained in:
parent
74a384de0a
commit
a9bccb964f
9 changed files with 77 additions and 15 deletions
|
@ -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!")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue