From a2f9ea81cc1055a24b96c9fdbb5eaee11e9f4a67 Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Thu, 26 Jan 2023 15:25:59 +0000 Subject: [PATCH] Fix mobs debug crash --- mods/ENTITIES/mcl_mobs/spawning.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index bcb330844..bd0648d52 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -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 })