Fix global name:

- 'sneeker' not 'sneaker'
This commit is contained in:
AntumDeluge 2017-05-29 01:29:08 -07:00 committed by Jordan Irwin
parent 58b239b4ae
commit 3a3de549bf
2 changed files with 2 additions and 2 deletions

@ -18,7 +18,7 @@ function sneeker.log_debug(message)
end end
end end
-- Spawns a sneaker entity -- Spawns a sneeker entity
function sneeker.spawn(pos) function sneeker.spawn(pos)
minetest.add_entity(pos, sneeker.mob_name) minetest.add_entity(pos, sneeker.mob_name)
sneeker.log_debug('Spawned entity "' .. sneeker.mob_name .. '" at ' .. tostring(pos.x) .. ',' .. tostring(pos.y)) sneeker.log_debug('Spawned entity "' .. sneeker.mob_name .. '" at ' .. tostring(pos.x) .. ',' .. tostring(pos.y))

@ -26,7 +26,7 @@ minetest.register_abm({
local node_light = minetest.get_node_light(pos) local node_light = minetest.get_node_light(pos)
-- Debugging spawning -- 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 if not node_light then
return return