1
0
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:
thetaepsilon-gamedev
2017-10-01 21:20:30 +01:00
parent 76ebd0a0e1
commit 8e53526b54
2 changed files with 4 additions and 3 deletions

View File

@ -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