mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-09 01:03:50 +01:00
Using mcl_vars
This commit is contained in:
parent
1f107ec0c7
commit
245ce99223
@ -1,11 +1,5 @@
|
|||||||
mcl_util = {}
|
mcl_util = {}
|
||||||
|
|
||||||
local MAPGEN_LIMIT = 31000
|
|
||||||
|
|
||||||
function mcl_util.get_mapgen_limit()
|
|
||||||
return MAPGEN_LIMIT
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Updates all values in t using values from to*.
|
-- Updates all values in t using values from to*.
|
||||||
function table.update(t, ...)
|
function table.update(t, ...)
|
||||||
for _, to in ipairs {...} do
|
for _, to in ipairs {...} do
|
||||||
|
@ -24,8 +24,8 @@ local spawn_protected = minetest.settings:get_bool("mobs_spawn_protected") ~= fa
|
|||||||
local mobs_debug = minetest.settings:get_bool("mobs_debug", false) -- Shows helpful debug info above each mob
|
local mobs_debug = minetest.settings:get_bool("mobs_debug", false) -- Shows helpful debug info above each mob
|
||||||
local spawn_logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true)
|
local spawn_logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true)
|
||||||
|
|
||||||
local MAPGEN_LIMIT = mcl_util.get_mapgen_limit()
|
local MAPGEN_LIMIT = mcl_vars.mapgen_limit
|
||||||
local MAPGEN_MOB_LIMIT = mcl_util.get_mapgen_limit() - 100
|
local MAPGEN_MOB_LIMIT = MAPGEN_LIMIT - 90
|
||||||
-- 30927 seems to be the edge of the world, so could be closer, but this is safer
|
-- 30927 seems to be the edge of the world, so could be closer, but this is safer
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user