mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-22 23:25:15 +02:00
Change logging default and one log message
This commit is contained in:
parent
78aa99eacd
commit
8c42694ac9
1 changed files with 2 additions and 1 deletions
|
@ -96,6 +96,7 @@ mcl_log("Percentage of hostile spawns are group: " .. hostile_group_percentage_s
|
|||
--do mobs spawn?
|
||||
local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= false
|
||||
local spawn_protected = minetest.settings:get_bool("mobs_spawn_protected") ~= false
|
||||
local logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",false)
|
||||
|
||||
-- count how many mobs are in an area
|
||||
local function count_mobs(pos,r,mob_type)
|
||||
|
@ -1054,7 +1055,7 @@ if mobs_spawn then
|
|||
if not spawning_position then
|
||||
fail_count = fail_count + 1
|
||||
if fail_count > 16 then
|
||||
minetest.log("action", "[Mobs spawn] Cannot find a valid spawn position after retries: " .. FIND_SPAWN_POS_RETRIES)
|
||||
minetest.log("action", "[Mobs spawn] Cannot find a valid spawn position in last 16 attemtps")
|
||||
end
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue