summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-17 05:31:48 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-03-17 05:31:48 -0400
commitcaeaae8e17f696c7bd387dd1080b1dd7edfeb379 (patch)
tree8967258bcde3c006307eefe61ed7365377a2750f
parent6bd13c15ff9d18ab41f57a58683525e2b65f35c2 (diff)
downloaddreambuilder_modpack-caeaae8e17f696c7bd387dd1080b1dd7edfeb379.tar
dreambuilder_modpack-caeaae8e17f696c7bd387dd1080b1dd7edfeb379.tar.gz
dreambuilder_modpack-caeaae8e17f696c7bd387dd1080b1dd7edfeb379.tar.bz2
dreambuilder_modpack-caeaae8e17f696c7bd387dd1080b1dd7edfeb379.tar.xz
dreambuilder_modpack-caeaae8e17f696c7bd387dd1080b1dd7edfeb379.zip
update pipeworks
-rw-r--r--pipeworks/devices.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/pipeworks/devices.lua b/pipeworks/devices.lua
index e4c5f43..a102a28 100644
--- a/pipeworks/devices.lua
+++ b/pipeworks/devices.lua
@@ -73,8 +73,8 @@ for s in ipairs(states) do
minetest.add_node(pos,{name="pipeworks:pump_off", param2 = node.param2})
end
}},
- on_punch = function(pos, node, puncher)
- local fdir = minetest.get_node(pos).param2
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
+ local fdir = node.param2
minetest.add_node(pos, { name = "pipeworks:pump_"..states[3-s], param2 = fdir })
end
})
@@ -104,7 +104,7 @@ for s in ipairs(states) do
after_dig_node = function(pos)
pipeworks.scan_for_pipe_objects(pos)
end,
- drop = "pipeworks:valve_off_empty",
+ drop = "pipeworks:valve_off_empty",
mesecons = {effector = {
action_on = function (pos, node)
minetest.add_node(pos,{name="pipeworks:valve_on_empty", param2 = node.param2})
@@ -113,8 +113,8 @@ for s in ipairs(states) do
minetest.add_node(pos,{name="pipeworks:valve_off_empty", param2 = node.param2})
end
}},
- on_punch = function(pos, node, puncher)
- local fdir = minetest.get_node(pos).param2
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
+ local fdir = node.param2
minetest.add_node(pos, { name = "pipeworks:valve_"..states[3-s].."_empty", param2 = fdir })
end
})
@@ -154,8 +154,8 @@ minetest.register_node("pipeworks:valve_on_loaded", {
minetest.add_node(pos,{name="pipeworks:valve_off_empty", param2 = node.param2})
end
}},
- on_punch = function(pos, node, puncher)
- local fdir = minetest.get_node(pos).param2
+ on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
+ local fdir = node.param2
minetest.add_node(pos, { name = "pipeworks:valve_off_empty", param2 = fdir })
end
})