summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-18 22:12:29 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2012-08-18 22:12:29 -0400
commitf574235d1d31e924dc70aadb28676e58e4ba4831 (patch)
treeffcd2747935b1771a97288a6b4bdc91794afb576 /init.lua
parent2bdcdc19b5fe51ebd0d8610553ad1de6ca2a3946 (diff)
downloadpipeworks-f574235d1d31e924dc70aadb28676e58e4ba4831.tar
pipeworks-f574235d1d31e924dc70aadb28676e58e4ba4831.tar.gz
pipeworks-f574235d1d31e924dc70aadb28676e58e4ba4831.tar.bz2
pipeworks-f574235d1d31e924dc70aadb28676e58e4ba4831.tar.xz
pipeworks-f574235d1d31e924dc70aadb28676e58e4ba4831.zip
better pipe end textures, made 'cut' ends also display them.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 3f477f9..f941d65 100644
--- a/init.lua
+++ b/init.lua
@@ -239,6 +239,33 @@ for zp = 0, 1 do
jy = yp+ym
jz = zp+zm
+ if (jx+jy+jz) == 1 then
+ if xm == 1 then
+ table.remove(outimgs, 3)
+ table.insert(outimgs, 3, "pipeworks_pipe_end_XXXXX.png")
+ end
+ if xp == 1 then
+ table.remove(outimgs, 4)
+ table.insert(outimgs, 4, "pipeworks_pipe_end_XXXXX.png")
+ end
+ if ym == 1 then
+ table.remove(outimgs, 1)
+ table.insert(outimgs, 1, "pipeworks_pipe_end_XXXXX.png")
+ end
+ if xp == 1 then
+ table.remove(outimgs, 2)
+ table.insert(outimgs, 2, "pipeworks_pipe_end_XXXXX.png")
+ end
+ if zm == 1 then
+ table.remove(outimgs, 5)
+ table.insert(outimgs, 5, "pipeworks_pipe_end_XXXXX.png")
+ end
+ if zp == 1 then
+ table.remove(outimgs, 6)
+ table.insert(outimgs, 6, "pipeworks_pipe_end_XXXXX.png")
+ end
+ end
+
if (jx==1 and jy==1 and jz~=1) or (jx==1 and jy~=1 and jz==1) or (jx~= 1 and jy==1 and jz==1) then
addbox(outboxes, bendsphere)
end