one more position check for https://gitlab.com/freelikegnu/witches/-/issues/1
parent
37a8f0774c
commit
be9512aeaf
|
@ -57,9 +57,11 @@ witches.witch_types = {
|
|||
local pos = self.object:get_pos()
|
||||
if pos then
|
||||
pos.y = pos.y+1
|
||||
local pos1 = minetest.find_node_near(pos, 3, "air")
|
||||
minetest.set_node(pos1, {name = "fireflies:firefly"})
|
||||
--print("setting firefly"..minetest.pos_to_string(pos1))
|
||||
local pos1 = minetest.find_node_near(pos, 3, "air")
|
||||
if pos1 then
|
||||
minetest.set_node(pos1, {name = "fireflies:firefly"})
|
||||
--print("setting firefly"..minetest.pos_to_string(pos1))
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue