diff --git a/functions.lua b/functions.lua index 278e293..d868549 100644 --- a/functions.lua +++ b/functions.lua @@ -18,7 +18,7 @@ function sneeker.log_debug(message) end end --- Spawns a sneaker entity +-- Spawns a sneeker entity function sneeker.spawn(pos) minetest.add_entity(pos, sneeker.mob_name) sneeker.log_debug('Spawned entity "' .. sneeker.mob_name .. '" at ' .. tostring(pos.x) .. ',' .. tostring(pos.y)) diff --git a/spawn.lua b/spawn.lua index 18eda0f..4ea4ee1 100644 --- a/spawn.lua +++ b/spawn.lua @@ -26,7 +26,7 @@ minetest.register_abm({ local node_light = minetest.get_node_light(pos) -- Debugging spawning - sneaker.log_debug('Node light level at ' .. tostring(pos.x) .. ',' .. tostring(pos.y) .. ': ' .. tostring(node_light)) + sneeker.log_debug('Node light level at ' .. tostring(pos.x) .. ',' .. tostring(pos.y) .. ': ' .. tostring(node_light)) if not node_light then return