Fix global name:
- 'sneeker' not 'sneaker'
This commit is contained in:
parent
2ddc96de06
commit
ea60b5fe9b
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user