From 3a3de549bfd79c6d05ebdff5e1e0e003795d8538 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Mon, 29 May 2017 01:29:08 -0700 Subject: [PATCH] Fix global name: - 'sneeker' not 'sneaker' --- functions.lua | 2 +- spawn.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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