From a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 17 Dec 2021 17:21:14 +0100 Subject: Raise max mapgen limit constant to align with mapblock size --- builtin/game/chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/game/chat.lua') diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua index 0f5739d5c..b73e32876 100644 --- a/builtin/game/chat.lua +++ b/builtin/game/chat.lua @@ -524,7 +524,7 @@ end -- Teleports player to

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!") -- cgit v1.2.3