From 14102d7c3ad8f7e4aef271294a74c28e7e851bc2 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 5 Jan 2013 21:14:09 -0500 Subject: 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. --- autoplace.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'autoplace.lua') 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 -- -- cgit v1.2.3