summaryrefslogtreecommitdiff
path: root/autoplace.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-22 08:24:42 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-22 08:24:42 -0400
commit70ea341bf5cbe63702d02fa24f52e0268fbb3a4d (patch)
tree260229a8dbab05217ff12067e313e34c9be200df /autoplace.lua
parenta66d9a85642e93c1ad5f758924a8404028c3fd90 (diff)
downloadpipeworks-70ea341bf5cbe63702d02fa24f52e0268fbb3a4d.tar
pipeworks-70ea341bf5cbe63702d02fa24f52e0268fbb3a4d.tar.gz
pipeworks-70ea341bf5cbe63702d02fa24f52e0268fbb3a4d.tar.bz2
pipeworks-70ea341bf5cbe63702d02fa24f52e0268fbb3a4d.tar.xz
pipeworks-70ea341bf5cbe63702d02fa24f52e0268fbb3a4d.zip
Extended storage tank to show fill level in 10% steps (0% to 100%).
Diffstat (limited to 'autoplace.lua')
-rw-r--r--autoplace.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/autoplace.lua b/autoplace.lua
index 94a8620..b615b64 100644
--- a/autoplace.lua
+++ b/autoplace.lua
@@ -105,15 +105,15 @@ pipes_scansurroundings = function(pos)
-- 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
+ if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or
+ (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or
(string.find(nym.name, "pipeworks:intake") ~= nil) or
(string.find(nym.name, "pipeworks:outlet") ~= 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
+ if (string.find(nyp.name, "pipeworks:storage_tank_") ~= nil) or
+ (string.find(nyp.name, "pipeworks:storage_tank_") ~= nil) then
pyp=1
end