diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-08 15:07:12 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-08 15:07:12 +0100 |
commit | 32a24730f1ab8cd596ed2f4cf6eda1a58c877ecb (patch) | |
tree | ad073b8a979cf5a8b496d8300d464e0e7291053b /devices.lua | |
parent | e98e4e268b5faf898a0b8f580d7da2b46ead05c4 (diff) |
new flow logic: change simple transition set logic to take list of key-value pairs, add set registration for flow sensor pipe
Diffstat (limited to 'devices.lua')
-rw-r--r-- | devices.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/devices.lua b/devices.lua index 44c9d5e..196d660 100644 --- a/devices.lua +++ b/devices.lua @@ -524,6 +524,9 @@ minetest.register_node(nodename_sensor_loaded, { -- FIXME requires-directionality new_flow_logic_register.simple(nodename_sensor_empty) new_flow_logic_register.simple(nodename_sensor_loaded) +-- activate flow sensor at roughly half the pressure pumps drive pipes +local sensor_pressure_set = { { nodename_sensor_empty, 0.0 }, { nodename_sensor_loaded, 2.0 } } +new_flow_logic_register.transition_simple_set(sensor_pressure_set) |