diff --git a/minetest.conf b/minetest.conf index 810bda7..e5c830d 100644 --- a/minetest.conf +++ b/minetest.conf @@ -3,6 +3,7 @@ enable_pvp = true fixed_map_seed = 14703851313754985906 map_generation_limit = 160 vote.kick_vote = false +barrier = 90 # # CTF_PVP_ENGINE diff --git a/mods/ctf_barrier/init.lua b/mods/ctf_barrier/init.lua index 0867736..dcf45ab 100644 --- a/mods/ctf_barrier/init.lua +++ b/mods/ctf_barrier/init.lua @@ -14,9 +14,8 @@ local lim = ctf.setting("match.map_reset_limit") local c_glass = minetest.get_content_id("ctf_barrier:ind_glass") local c_stone = minetest.get_content_id("ctf_flag:ind_base") local c_air = minetest.get_content_id("air") +local r = tonumber(minetest.setting_get("barrier")) minetest.register_on_generated(function(minp, maxp, seed) - local r = lim - 4 - if not ((minp.x < -r and maxp.x > -r) or (minp.x < r and maxp.x > r) or (minp.y < -r and maxp.x > -r) diff --git a/mods/shooter/init.lua b/mods/shooter/init.lua index 1eceb96..7891dbb 100644 --- a/mods/shooter/init.lua +++ b/mods/shooter/init.lua @@ -23,4 +23,3 @@ end if SHOOTER_ENABLE_TURRETS == true then dofile(modpath.."/turret.lua") end -