From 87b6d7a37e6f6835aecc4dab8d972f896f2515da Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Mon, 8 Jan 2018 11:59:55 -0500 Subject: [PATCH] add pos to debug info --- spawners_mobs/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spawners_mobs/api.lua b/spawners_mobs/api.lua index fcf1649..97a33d7 100644 --- a/spawners_mobs/api.lua +++ b/spawners_mobs/api.lua @@ -140,7 +140,7 @@ function spawners_mobs.tick(pos) return end minetest.get_node_timer(pos):start(math.random(166, 286)) - -- minetest.get_node_timer(pos):start(math.random(40, 80)) + -- minetest.get_node_timer(pos):start(math.random(2, 3)) end -- how often a spawn failure tick is retried (e.g. too dark) @@ -157,7 +157,7 @@ function spawners_mobs.tick_short(pos) -- print("tick_short_counter: "..tick_short_counter) end minetest.get_node_timer(pos):start(math.random(40, 80)) - -- minetest.get_node_timer(pos):start(math.random(20, 40)) + -- minetest.get_node_timer(pos):start(math.random(2, 3)) end -- @@ -331,7 +331,7 @@ function spawners_mobs.on_timer(pos, elapsed) entities_near = entities_near + 1 end else - minetest.log("warning", "[spawners_mobs] tmp_mob_name was nil, luaentity name was: "..object:get_luaentity().name) + minetest.log("warning", "[spawners_mobs] tmp_mob_name was nil, luaentity name was: "..object:get_luaentity().name.." at: "..minetest.pos_to_string(object:get_pos())) end end