mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-07-03 08:40:34 +02:00
made storage tanks' upper/lower fittings and intake grate fitting participate
in pipe autoplace algorithm
This commit is contained in:
@ -101,5 +101,20 @@ pipes_scansurroundings = function(pos)
|
||||
pzp=1
|
||||
end
|
||||
end
|
||||
|
||||
-- storage tanks and intake grates have vertical connections
|
||||
-- also, so they require a special case
|
||||
|
||||
if (string.find(nym.name, "pipeworks:storage_tank_x") ~= nil) or
|
||||
(string.find(nym.name, "pipeworks:storage_tank_z") ~= nil) or
|
||||
(string.find(nym.name, "pipeworks:intake") ~= nil) then
|
||||
pym=1
|
||||
end
|
||||
|
||||
if (string.find(nyp.name, "pipeworks:storage_tank_x") ~= nil) or
|
||||
(string.find(nyp.name, "pipeworks:storage_tank_z") ~= nil) then
|
||||
pyp=1
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user