mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-29 23:00:49 +02:00
initial stub patches to re-implement new_flow_logic
This commit is contained in:
14
pipes.lua
14
pipes.lua
@ -227,3 +227,17 @@ minetest.register_abm({
|
||||
end
|
||||
})
|
||||
|
||||
|
||||
-- run pressure balancing ABM over all water-moving nodes
|
||||
local pipes_all_nodenames = pipes_full_nodenames
|
||||
for _, pipe in ipairs(pipes_empty_nodenames) do
|
||||
table.insert(pipes_all_nodenames, pipe)
|
||||
end
|
||||
minetest.register_abm({
|
||||
nodenames = pipes_all_nodenames,
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
pipeworks.balance_pressure(pos, node)
|
||||
end
|
||||
})
|
||||
|
Reference in New Issue
Block a user