This commit is contained in:
Alexsandro Percy 2021-12-11 08:03:09 -03:00
parent 996e650194
commit 44a23b3928

View file

@ -96,6 +96,7 @@ minetest.register_node("airutils:papi",{
function airutils.remove_papi(pos) function airutils.remove_papi(pos)
local meta = core.get_meta(pos) local meta = core.get_meta(pos)
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
if node and meta then
local dir=node.param2 local dir=node.param2
if node.name == "airutils:papi_right" then if node.name == "airutils:papi_right" then
core.set_node(pos, {name="airutils:papi", param2=dir}) core.set_node(pos, {name="airutils:papi", param2=dir})
@ -110,6 +111,7 @@ function airutils.remove_papi(pos)
return return
end end
end end
end
-- PAPI right node -- PAPI right node
minetest.register_node("airutils:papi_right",{ minetest.register_node("airutils:papi_right",{