0
0
Fork 0

Fix mobs debug crash

This commit is contained in:
ancientmarinerdev 2023-01-26 15:25:59 +00:00 committed by Gitea
parent 7c7f4b930c
commit a2f9ea81cc
1 changed files with 2 additions and 5 deletions

View File

@ -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,"successful spawns since server start:"..dbg_spawn_succ)
--local mob_counts, total_mobs = count_mobs_all("name") -- name
local mob_counts, total_mobs = count_mobs_all("type")
output_mob_stats(mob_counts, total_mobs)
local mob_counts_close, mob_counts_wide, total_mobs = count_mobs_all("name") -- Can use "type"
output_mob_stats(mob_counts_wide, total_mobs)
end
})