summaryrefslogtreecommitdiff
path: root/new_flow_logic/abm_register.lua
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-07 17:55:14 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-07 17:55:14 +0100
commit65b3448796815718275ed3c16af4865e5e005454 (patch)
treef069b22becf461f133d1bc1eeb761ebf868e7c70 /new_flow_logic/abm_register.lua
parent016f9de82f91b61a14ad1bc477ee18b501f77e39 (diff)
downloadpipeworks-65b3448796815718275ed3c16af4865e5e005454.tar
pipeworks-65b3448796815718275ed3c16af4865e5e005454.tar.gz
pipeworks-65b3448796815718275ed3c16af4865e5e005454.tar.bz2
pipeworks-65b3448796815718275ed3c16af4865e5e005454.tar.xz
pipeworks-65b3448796815718275ed3c16af4865e5e005454.zip
new flow logic: abms.lua: refactor flowlogic.run_output() into a processing stage of flowlogic.run()
Diffstat (limited to 'new_flow_logic/abm_register.lua')
-rw-r--r--new_flow_logic/abm_register.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/new_flow_logic/abm_register.lua b/new_flow_logic/abm_register.lua
index db6233f..1c7eede 100644
--- a/new_flow_logic/abm_register.lua
+++ b/new_flow_logic/abm_register.lua
@@ -66,6 +66,7 @@ register.input = register_abm_input
-- threshold determines the minimum pressure, over which outputfn is called.
-- outputfn is then given the current pressure, and returns the pressure relieved by the output process.
-- outputfn is expected to update environment, nearby world etc. as appropriate for the node.
+--[[
local register_abm_output = function(nodename, threshold, outputfn)
minetest.register_abm({
nodenames = { nodename },
@@ -77,6 +78,7 @@ local register_abm_output = function(nodename, threshold, outputfn)
})
end
register.output = register_abm_output
+]]
-- old spigot ABM code, not yet migrated
--[[