diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 16:20:27 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 16:20:27 -0400 |
commit | a69c210b569df7b659a3fd4fe6f5a414b3d1282c (patch) | |
tree | e144f78b366a96721d1120d714ed0893604840fe | |
parent | cb8a4f3cecd7b8b9ade4b82314eb725116e424e2 (diff) |
remove value/sensor conversion LBM
no longer needed, broken anyway
-rw-r--r-- | devices.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/devices.lua b/devices.lua index 07cf6fe..2ace81f 100644 --- a/devices.lua +++ b/devices.lua @@ -738,21 +738,3 @@ new_flow_logic_register.directional_horizonal_rotate(nodename_sp_loaded, true) minetest.register_alias("pipeworks:valve_off_loaded", "pipeworks:valve_off_empty") minetest.register_alias("pipeworks:entry_panel", "pipeworks:entry_panel_empty") -minetest.register_lbm({ - name = "pipeworks:rotate_valves_flowsensors", - label = "Flip pipeworks valves and flow sensors around X/Z", - run_at_every_load = false, - nodenames = { - "pipeworks:flow_sensor_empty", - "pipeworks:flow_sensor_loaded", - "pipeworks:valve_off_empty", - "pipeworks:valve_on_empty", - "pipeworks:valve_off_loaded", - }, - action = function(pos, node) - local dir = minetest.facedir_to_dir(node.param2) - local newdir = { x=dir.z, y=dir.y, z=dir.x } - local newfdir = minetest.dir_to_facedir(newdir) - minetest.swap_node(pos, { name = node.name, param2 = newfdir }) - end -}) |