From 21666903bb77fe65eebfe0dc27b128e465b4f94a Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 18 Aug 2013 11:57:22 +0200 Subject: [PATCH] Add additional profiling facility spawn_onstep --- mobf/spawning.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobf/spawning.lua b/mobf/spawning.lua index dcb9eb2..9620b9c 100644 --- a/mobf/spawning.lua +++ b/mobf/spawning.lua @@ -662,7 +662,7 @@ function spawning.register_spawner_entity(mobname,secondary_mobname,spawndata,en mobf_warn_long_fct(starttime,"spawnfunc " .. self.spawner_mob_name,"spawnfunc") end - mobf_warn_long_fct(starttime,"spawner_entity_onstep","mapgen") + mobf_warn_long_fct(starttime,"spawner_entity_onstep","spawn_onstep") end, on_activate = function(self,staticdata) @@ -672,7 +672,7 @@ function spawning.register_spawner_entity(mobname,secondary_mobname,spawndata,en end --TODO honor time since deactivation self.spawner_time_passed = 1 - mobf_warn_long_fct(starttime,"spawner_entity_activate","mapgen") + mobf_warn_long_fct(starttime,"spawner_entity_activate","spawn_onstep") end, spawner_mob_name = mobname,