diff options
Diffstat (limited to 'autoplace.lua')
-rw-r--r-- | autoplace.lua | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/autoplace.lua b/autoplace.lua index 54df02a..6ff5b90 100644 --- a/autoplace.lua +++ b/autoplace.lua @@ -171,14 +171,23 @@ function pipes_scansurroundings(pos) pzp=1 end --- ...pumps, grates, and storage tanks +-- ...pumps, grates... - if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or - (string.find(nym.name, "pipeworks:grating") ~= nil) or + if (string.find(nym.name, "pipeworks:grating") ~= nil) or (string.find(nym.name, "pipeworks:pump") ~= nil) then pym=1 end +-- ... and storage tanks. + + if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) then + pym=1 + end + + if (string.find(nyp.name, "pipeworks:storage_tank_") ~= nil) then + pyp=1 + end + -- ...extra devices specified via the function's parameters -- ...except that this part is not implemented yet -- |