Print spawning pos if display_mob_spawn is set to true in minetest.conf

master
PilzAdam 2012-09-19 18:23:09 +02:00
parent c14f036893
commit c00426fcf3
1 changed files with 3 additions and 1 deletions

View File

@ -389,7 +389,9 @@ function mobs:register_spawn(name, nodes, max_light, min_light)
return
end
--minetest.chat_send_all("[mobs] Add "..name.." at "..minetest.pos_to_string(pos))
if minetest.setting_getbool("display_mob_spawn") then
minetest.chat_send_all("[mobs] Add "..name.." at "..minetest.pos_to_string(pos))
end
minetest.env:add_entity(pos, name)
end
})