1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-07-03 08:40:34 +02:00

made storage tanks connect from top/bottom, made storage tank and pipe

textures use the ^ combine operator so they can show the actual liquid going
through the pipes/tanks.
This commit is contained in:
Vanessa Ezekowitz
2013-01-05 21:14:09 -05:00
parent 0a1f90c391
commit 14102d7c3a
21 changed files with 27 additions and 16 deletions

View File

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