diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-07 19:19:09 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-07 19:19:09 +0100 |
commit | 9c770532e6e3cb1157e467015a97aef97a8a8893 (patch) | |
tree | 1b9ee9abce6357a085e7b5cb9b94149e35b2a39a /new_flow_logic/abm_register.lua | |
parent | be1a6d53aa94f812dc661b4b08c5d0e2ebf97623 (diff) |
new flow logic: abms.lua: refactor run_input to run as part of master run() ABM
Diffstat (limited to 'new_flow_logic/abm_register.lua')
-rw-r--r-- | new_flow_logic/abm_register.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/new_flow_logic/abm_register.lua b/new_flow_logic/abm_register.lua index 1c7eede..dbd37e6 100644 --- a/new_flow_logic/abm_register.lua +++ b/new_flow_logic/abm_register.lua @@ -50,6 +50,7 @@ register.balance = register_abm_balance -- register a node for the input ABM. -- intakefn is run on the node to determine how much water can be taken (and update it's environment accordingly). -- maxpressure is the maximum pressure that this input can drive, beyond which pressure will not be raised. +--[[ local register_abm_input = function(nodename, maxpressure, intakefn) minetest.register_abm({ nodenames = { nodename }, @@ -61,6 +62,7 @@ local register_abm_input = function(nodename, maxpressure, intakefn) }) end register.input = register_abm_input +]] -- register a node for the output ABM. -- threshold determines the minimum pressure, over which outputfn is called. |