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_insulated | |
parent | 9e6eac4285a4c5a0b244e0a6d3a8547afab82cb9 (diff) |
Remove tiny (+0.001) selection box oversize
Diffstat (limited to 'mesecons_insulated')
-rw-r--r-- | mesecons_insulated/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesecons_insulated/init.lua b/mesecons_insulated/init.lua index e6e8232..ca55b9a 100644 --- a/mesecons_insulated/init.lua +++ b/mesecons_insulated/init.lua @@ -27,10 +27,11 @@ minetest.register_node("mesecons_insulated:insulated_on", { sunlight_propagates = true, selection_box = { type = "fixed", - fixed = { -16/32-0.001, -16/32, -7/32, 16/32+0.001, -12/32, 7/32 } + fixed = { -16/32, -16/32, -7/32, 16/32, -12/32, 7/32 } }, node_box = { 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 } }, groups = {dig_immediate = 3, not_in_creative_inventory = 1}, @@ -63,10 +64,11 @@ minetest.register_node("mesecons_insulated:insulated_off", { sunlight_propagates = true, selection_box = { type = "fixed", - fixed = { -16/32-0.001, -16/32, -7/32, 16/32+0.001, -12/32, 7/32 } + fixed = { -16/32, -16/32, -7/32, 16/32, -12/32, 7/32 } }, node_box = { 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 } }, groups = {dig_immediate = 3}, |