diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-19 12:30:28 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-19 12:30:28 +0100 |
commit | fd4bd8eadcdbd12d119b69b591bfe66a238f14f8 (patch) | |
tree | 3503a6aff48b2eed3cdbfb29ce81ee60fe155ab6 | |
parent | 0913098a9de262050ccde0bdd221dd1a12d1a785 (diff) | |
download | pipeworks-fd4bd8eadcdbd12d119b69b591bfe66a238f14f8.tar pipeworks-fd4bd8eadcdbd12d119b69b591bfe66a238f14f8.tar.gz pipeworks-fd4bd8eadcdbd12d119b69b591bfe66a238f14f8.tar.bz2 pipeworks-fd4bd8eadcdbd12d119b69b591bfe66a238f14f8.tar.xz pipeworks-fd4bd8eadcdbd12d119b69b591bfe66a238f14f8.zip |
devices.lua: make flow sensor use the horizontally rotating flowable class
-rw-r--r-- | devices.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/devices.lua b/devices.lua index a2c0c80..7dad816 100644 --- a/devices.lua +++ b/devices.lua @@ -523,9 +523,8 @@ minetest.register_node(nodename_sensor_loaded, { mesecons = pipereceptor_on, on_rotate = pipeworks.fix_after_rotation }) --- FIXME requires-directionality -new_flow_logic_register.simple(nodename_sensor_empty) -new_flow_logic_register.simple(nodename_sensor_loaded) +new_flow_logic_register.directional_horizonal_rotate(nodename_sensor_empty) +new_flow_logic_register.directional_horizonal_rotate(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, 1.0 } } new_flow_logic_register.transition_simple_set(sensor_pressure_set, { mesecons=pipeworks.mesecons_rules }) |