summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-12-17 17:21:14 +0100
committersfan5 <sfan5@live.de>2022-01-30 13:49:26 +0100
commita9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e (patch)
tree03d526445df226332c0c376f52957524c14a0d93 /builtin
parent74a384de0acd52410269d160e94f1705cb4de300 (diff)
downloadminetest-a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e.tar.gz
minetest-a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e.tar.bz2
minetest-a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e.zip
Raise max mapgen limit constant to align with mapblock size
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/chat.lua2
-rw-r--r--builtin/settingtypes.txt2
2 files changed, 2 insertions, 2 deletions
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 <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!")
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index 9f01c67cf..42b45aa00 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -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