forked from VoxeLibre/VoxeLibre
Fix mobs debug crash
This commit is contained in:
parent
3153d14523
commit
5b8bc87452
|
@ -955,10 +955,7 @@ minetest.register_chatcommand("mobstats",{
|
||||||
minetest.chat_send_player(n,"spawning attempts since server start:"..dbg_spawn_attempts)
|
minetest.chat_send_player(n,"spawning attempts since server start:"..dbg_spawn_attempts)
|
||||||
minetest.chat_send_player(n,"successful spawns since server start:"..dbg_spawn_succ)
|
minetest.chat_send_player(n,"successful spawns since server start:"..dbg_spawn_succ)
|
||||||
|
|
||||||
|
local mob_counts_close, mob_counts_wide, total_mobs = count_mobs_all("name") -- Can use "type"
|
||||||
--local mob_counts, total_mobs = count_mobs_all("name") -- name
|
output_mob_stats(mob_counts_wide, total_mobs)
|
||||||
local mob_counts, total_mobs = count_mobs_all("type")
|
|
||||||
output_mob_stats(mob_counts, total_mobs)
|
|
||||||
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue