From a62bfe3828bf2d6889a71ab7d906c31641593663 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 22 Oct 2023 11:48:21 +0100 Subject: [PATCH] tweak spawn log msg --- api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index b727cfd..13b0bf8 100644 --- a/api.lua +++ b/api.lua @@ -4094,11 +4094,13 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, inter if mob_log_spawn then + local pos_string = pos and minetest.pos_to_string(pos) or "" + minetest.log( "[MOBS] Spawned " .. (name or "") .. " at " - .. (pos and minetest.pos_to_string(pos)) or "" + .. pos_string ) end