summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@googlemail.com>2012-08-12 22:27:41 -0700
committerJeija <norrepli@googlemail.com>2012-08-12 22:27:41 -0700
commit736f40bfb42a4a4b39a504b71c524fb988a93ca7 (patch)
treea0ba21aa8a2a6ea26dbaa3002c8c26cb0413e1de
parentfc74976f9c554ffa964dc0553acabc538bd67ed9 (diff)
parent68342c79d54b0efb4d9a680c17fbe2bb33be440a (diff)
downloadmesecons-736f40bfb42a4a4b39a504b71c524fb988a93ca7.tar
mesecons-736f40bfb42a4a4b39a504b71c524fb988a93ca7.tar.gz
mesecons-736f40bfb42a4a4b39a504b71c524fb988a93ca7.tar.bz2
mesecons-736f40bfb42a4a4b39a504b71c524fb988a93ca7.tar.xz
mesecons-736f40bfb42a4a4b39a504b71c524fb988a93ca7.zip
Merge pull request #22 from VanessaE/master
slim down mesecon wires' junction bumps
-rw-r--r--mesecons/wires.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/mesecons/wires.lua b/mesecons/wires.lua
index 12b5de7..e4c7e6a 100644
--- a/mesecons/wires.lua
+++ b/mesecons/wires.lua
@@ -40,8 +40,8 @@ else -- NEW STYLE WIRES
-- y always means y+
box_center = {-1/16, -.5, -1/16, 1/16, -.5+1/16, 1/16}
-box_bump1 = { -3/16, -8/16, -3/16, 3/16, -13/32, 3/16 }
-box_bump2 = { -5/32, -13/32, -5/32, 5/32, -12/32, 5/32 }
+box_bump1 = { -2/16, -8/16, -2/16, 2/16, -13/32, 2/16 }
+box_bump2 = { -3/32, -13/32, -3/32, 3/32, -12/32, 3/32 }
box_xp = {1/16, -.5, -1/16, 8/16, -.5+1/16, 1/16}
box_zp = {-1/16, -.5, 1/16, 1/16, -.5+1/16, 8/16}
@@ -87,7 +87,8 @@ for zmy=0, 1 do
if zpy == 1 then table.insert(nodebox, box_zpy) end
if xmy == 1 then table.insert(nodebox, box_xmy) end
if zmy == 1 then table.insert(nodebox, box_zmy) end
- if adjx and adjz then
+ nobump = xp+zp+xm+zm
+ if adjx and adjz and (nobump > 2) then
table.insert(nodebox, box_bump1)
table.insert(nodebox, box_bump2)
tiles_off = {