diff options
-rw-r--r-- | devices.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/devices.lua b/devices.lua index 71e8eac..b490d01 100644 --- a/devices.lua +++ b/devices.lua @@ -319,6 +319,7 @@ for a in ipairs(axes) do minetest.register_on_punchnode(function (pos, node) if node.name=="pipeworks:valve_on_"..axes[a] then minetest.env:add_node(pos, { name = "pipeworks:valve_off_"..axes[a] }) + local meta = minetest.env:get_meta(pos) meta:set_int("pipelike",0) end end) @@ -326,6 +327,7 @@ for a in ipairs(axes) do minetest.register_on_punchnode(function (pos, node) if node.name=="pipeworks:valve_off_"..axes[a] then minetest.env:add_node(pos, { name = "pipeworks:valve_on_"..axes[a] }) + local meta = minetest.env:get_meta(pos) meta:set_int("pipelike",1) end end) |