diff options
author | number Zero <numzer0@yandex.ru> | 2018-08-27 00:17:35 +0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-09-07 17:31:49 +0200 |
commit | a4f5ae5b89f60a1c1a918089d8474e2f37430561 (patch) | |
tree | 4b4ccc703205a915e7adae693b9f4f23ae181db1 /mesecons_extrawires/tjunction.lua | |
parent | 9e6eac4285a4c5a0b244e0a6d3a8547afab82cb9 (diff) |
Remove tiny (+0.001) selection box oversize
Diffstat (limited to 'mesecons_extrawires/tjunction.lua')
-rw-r--r-- | mesecons_extrawires/tjunction.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesecons_extrawires/tjunction.lua b/mesecons_extrawires/tjunction.lua index 9a520d1..77c4290 100644 --- a/mesecons_extrawires/tjunction.lua +++ b/mesecons_extrawires/tjunction.lua @@ -2,13 +2,14 @@ local screwdriver_exists = minetest.global_exists("screwdriver") local tjunction_nodebox = { type = "fixed", + -- ±0.001 is to prevent z-fighting fixed = {{ -16/32-0.001, -17/32, -3/32, 16/32+0.001, -13/32, 3/32 }, { -3/32, -17/32, -16/32+0.001, 3/32, -13/32, -3/32},} } local tjunction_selectionbox = { type = "fixed", - fixed = { -16/32-0.001, -16/32, -16/32, 16/32+0.001, -12/32, 7/32 }, + fixed = { -16/32, -16/32, -16/32, 16/32, -12/32, 7/32 }, } local tjunction_get_rules = function (node) |