forked from VoxeLibre/VoxeLibre
Logging improvements
This commit is contained in:
parent
e5c639c779
commit
3e1a475442
|
@ -21,11 +21,9 @@ local S = minetest.get_translator("mcl_mobs")
|
||||||
local mob_active_range = tonumber(minetest.settings:get("mcl_mob_active_range")) or 48
|
local mob_active_range = tonumber(minetest.settings:get("mcl_mob_active_range")) or 48
|
||||||
|
|
||||||
local LOGGING_ON = minetest.settings:get_bool("mcl_logging_mobs_villager",false)
|
local LOGGING_ON = minetest.settings:get_bool("mcl_logging_mobs_villager",false)
|
||||||
|
|
||||||
local LOG_MODULE = "[Mobs]"
|
|
||||||
local function mcl_log (message)
|
local function mcl_log (message)
|
||||||
if LOGGING_ON and message then
|
if LOGGING_ON then
|
||||||
minetest.log(LOG_MODULE .. " " .. message)
|
mcl_util.mcl_log (message, "[Mobs]", true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue