diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-01 21:04:07 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-01 21:04:07 +0100 |
commit | 667eeb7d095f12d5c7e560d161697878ea485433 (patch) | |
tree | ea448da7b324c451cbd5ea1dff108ea924ae810d /devices.lua | |
parent | dc13ec619f7e49b0e75f845f8baa0559a8b11936 (diff) |
new flow logic: abms.lua: generalise spigot output code to support arbitary neighbour lists
Diffstat (limited to 'devices.lua')
-rw-r--r-- | devices.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devices.lua b/devices.lua index f4f2150..d12c84a 100644 --- a/devices.lua +++ b/devices.lua @@ -377,8 +377,9 @@ minetest.register_node(nodename_spigot_loaded, { new_flow_logic_register.simple(nodename_spigot_empty) new_flow_logic_register.simple(nodename_spigot_loaded) local spigot_min = 1 -new_flow_logic_register.output(nodename_spigot_empty, spigot_min, pipeworks.flowlogic.helpers.output_spigot) -new_flow_logic_register.output(nodename_spigot_loaded, spigot_min, pipeworks.flowlogic.helpers.output_spigot) +local outputfn = pipeworks.flowlogic.helpers.make_neighbour_output({{x=0, y=-1, z=0}}) +new_flow_logic_register.output(nodename_spigot_empty, spigot_min, outputfn) +new_flow_logic_register.output(nodename_spigot_loaded, spigot_min, outputfn) |