diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-11-03 22:09:25 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-11-03 23:02:36 -0400 |
commit | ee0c276900dd6c15fac3ed21247f31982c206053 (patch) | |
tree | 672ab43661749bdf88a4ab8c50b53a3d013e6cc9 /pipes.lua | |
parent | e46e2f8c45975e7a85fd72d034d072af35cf87b7 (diff) |
added straight-only pipe
(for situations where one might want to run
several closely-spaced parallel pipelines)
Also fixed a bug where a pipe "entry panel" would
report full of water if a pipe next to it (but not
connecting) was also full of water
Only tested under "classic" flowing logic mode.
Diffstat (limited to 'pipes.lua')
-rw-r--r-- | pipes.lua | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -191,35 +191,32 @@ if REGISTER_COMPATIBILITY then }) end - - local valve_on = "pipeworks:valve_on_empty" local valve_off = "pipeworks:valve_off_empty" local entry_panel_empty = "pipeworks:entry_panel_empty" local flow_sensor_empty = "pipeworks:flow_sensor_empty" +local sp_empty = "pipeworks:straight_pipe_empty" -- XXX: why aren't these in devices.lua!? table.insert(pipes_empty_nodenames, valve_on) table.insert(pipes_empty_nodenames, valve_off) table.insert(pipes_empty_nodenames, entry_panel_empty) table.insert(pipes_empty_nodenames, flow_sensor_empty) +table.insert(pipes_empty_nodenames, sp_empty) local valve_on_loaded = "pipeworks:valve_on_loaded" local entry_panel_loaded = "pipeworks:entry_panel_loaded" local flow_sensor_loaded = "pipeworks:flow_sensor_loaded" +local sp_loaded = "pipeworks:straight_pipe_loaded" table.insert(pipes_full_nodenames, valve_on_loaded) table.insert(pipes_full_nodenames, entry_panel_loaded) table.insert(pipes_full_nodenames, flow_sensor_loaded) +table.insert(pipes_full_nodenames, sp_loaded) pipeworks.pipes_full_nodenames = pipes_full_nodenames pipeworks.pipes_empty_nodenames = pipes_empty_nodenames - - - if pipeworks.toggles.pipe_mode == "classic" then - - minetest.register_abm({ nodenames = pipes_empty_nodenames, interval = 1, |