summaryrefslogtreecommitdiff
path: root/devices.lua
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-07 13:05:52 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-07 13:05:52 +0100
commit4f58a3039c55783978d5f85fbf59f06025884384 (patch)
tree286b9cc0ff29214e7de2b2916d67d8dfb3608b73 /devices.lua
parent465e28cbd3e2d176a4ca0429711bc459fe37cf0d (diff)
downloadpipeworks-4f58a3039c55783978d5f85fbf59f06025884384.tar
pipeworks-4f58a3039c55783978d5f85fbf59f06025884384.tar.gz
pipeworks-4f58a3039c55783978d5f85fbf59f06025884384.tar.bz2
pipeworks-4f58a3039c55783978d5f85fbf59f06025884384.tar.xz
pipeworks-4f58a3039c55783978d5f85fbf59f06025884384.zip
new flow logic: flowable_node_registry_install.lua: separate pressure threshold into upper and lower hysteresis values
Diffstat (limited to 'devices.lua')
-rw-r--r--devices.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/devices.lua b/devices.lua
index 61648da..26b9275 100644
--- a/devices.lua
+++ b/devices.lua
@@ -376,10 +376,11 @@ minetest.register_node(nodename_spigot_loaded, {
-- register both so existing flowing spigots continue to work (even if the visual doesn't match the spigot's behaviour).
new_flow_logic_register.simple(nodename_spigot_empty)
new_flow_logic_register.simple(nodename_spigot_loaded)
-local spigot_min = 1
+local spigot_upper = 1.5
+local spigot_lower = 1.0
local spigot_neighbours={{x=0, y=-1, z=0}}
-new_flow_logic_register.output_simple(nodename_spigot_empty, spigot_min, spigot_neighbours)
-new_flow_logic_register.output_simple(nodename_spigot_loaded, spigot_min, spigot_neighbours)
+new_flow_logic_register.output_simple(nodename_spigot_empty, spigot_upper, spigot_lower, spigot_neighbours)
+new_flow_logic_register.output_simple(nodename_spigot_loaded, spigot_upper, spigot_lower, spigot_neighbours)
@@ -669,10 +670,11 @@ minetest.register_node(nodename_fountain_loaded, {
})
new_flow_logic_register.simple(nodename_fountain_empty)
new_flow_logic_register.simple(nodename_fountain_loaded)
-local fountain_min = 1
+local fountain_upper = 1.5
+local fountain_lower = 1.0
local fountain_neighbours={{x=0, y=1, z=0}}
-new_flow_logic_register.output_simple(nodename_fountain_empty, fountain_min, fountain_neighbours)
-new_flow_logic_register.output_simple(nodename_fountain_loaded, fountain_min, fountain_neighbours)
+new_flow_logic_register.output_simple(nodename_fountain_empty, fountain_upper, fountain_lower, fountain_neighbours)
+new_flow_logic_register.output_simple(nodename_fountain_loaded, fountain_upper, fountain_lower, fountain_neighbours)