Print spawning pos if display_mob_spawn is set to true in minetest.conf
This commit is contained in:
parent
c14f036893
commit
c00426fcf3
4
init.lua
4
init.lua
@ -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
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user