Add method 'sneeker.get_pos_string':
Returns x, y, z coordinates in a string.
This commit is contained in:
@@ -29,7 +29,7 @@ minetest.register_abm({
|
||||
local node_light = minetest.get_node_light(pos)
|
||||
|
||||
-- Debugging spawning
|
||||
sneeker.log_debug('Node light level at ' .. tostring(pos.x) .. ',' .. tostring(pos.y) .. ': ' .. tostring(node_light))
|
||||
sneeker.log_debug('Node light level at ' .. sneeker.get_pos_string(pos) .. ': ' .. tostring(node_light))
|
||||
|
||||
if not node_light or node_light > sneeker.spawn_maxlight or node_light < -1 then
|
||||
spawnit = false
|
||||
|
||||
Reference in New Issue
Block a user