Skip to content

Commit

Permalink
Remove map size limit, since it will be increased by Luanti
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Jan 19, 2025
1 parent a4f5ee6 commit 05b9ece
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mods/ctf/ctf_map/map_meta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,6 @@ function ctf_map.load_map_meta(idx, dirname)
-- The version number should be updated if you change an item
local size = minetest.deserialize(meta:get("size"))

if size.x * size.y * size.z < 4096000 then
minetest.log("error", "The map " .. dirname ..
" is too large. Disabling until a workaround is implemented")
end

offset.y = -size.y/2

map = {
Expand All @@ -184,7 +179,7 @@ function ctf_map.load_map_meta(idx, dirname)
offset = offset,
size = size,
dirname = dirname,
enabled = (size.x * size.y * size.z < 4096000) and (meta:get("enabled") == "true"),
enabled = meta:get("enabled") == "true",
name = meta:get("name"),
author = meta:get("author"),
hint = meta:get("hint"),
Expand Down

0 comments on commit 05b9ece

Please sign in to comment.