mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-28 06:20:29 +02:00
new flow logic: abms.lua: rename neighbour output helper to better indicate lack of rotation support
This commit is contained in:
@ -115,7 +115,8 @@ end
|
||||
-- outputs water by trying to place water nodes nearby in the world.
|
||||
-- neighbours is a list of node offsets to try placing water in.
|
||||
-- this is a constructor function, returning another function which satisfies the output helper requirements.
|
||||
flowlogic.helpers.make_neighbour_output = function(neighbours)
|
||||
-- note that this does *not* take rotation into account.
|
||||
flowlogic.helpers.make_neighbour_output_fixed = function(neighbours)
|
||||
return function(pos, node, currentpressure)
|
||||
local taken = 0
|
||||
for _, offset in pairs(neighbours) do
|
||||
|
Reference in New Issue
Block a user