diff options
-rw-r--r-- | mesecons_extrawires/corner.lua | 3 | ||||
-rw-r--r-- | mesecons_extrawires/crossover.lua | 8 | ||||
-rw-r--r-- | mesecons_extrawires/tjunction.lua | 3 | ||||
-rw-r--r-- | mesecons_insulated/init.lua | 6 |
4 files changed, 12 insertions, 8 deletions
diff --git a/mesecons_extrawires/corner.lua b/mesecons_extrawires/corner.lua index 61ce933..d33447a 100644 --- a/mesecons_extrawires/corner.lua +++ b/mesecons_extrawires/corner.lua @@ -2,13 +2,14 @@ local screwdriver_exists = minetest.global_exists("screwdriver") local corner_nodebox = { type = "fixed", + -- ±0.001 is to prevent z-fighting fixed = {{ -16/32-0.001, -17/32, -3/32, 0, -13/32, 3/32 }, { -3/32, -17/32, -16/32+0.001, 3/32, -13/32, 3/32}} } local corner_selectionbox = { type = "fixed", - fixed = { -16/32-0.001, -16/32, -16/32, 5/32, -12/32, 5/32 }, + fixed = { -16/32, -16/32, -16/32, 5/32, -12/32, 5/32 }, } local corner_get_rules = function (node) diff --git a/mesecons_extrawires/crossover.lua b/mesecons_extrawires/crossover.lua index 277b87c..2656d61 100644 --- a/mesecons_extrawires/crossover.lua +++ b/mesecons_extrawires/crossover.lua @@ -32,7 +32,7 @@ minetest.register_node("mesecons_extrawires:crossover_off", { is_ground_content = false, walkable = false, stack_max = 99, - selection_box = {type="fixed", fixed={-16/32-0.0001, -16/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + selection_box = {type="fixed", fixed={-16/32, -16/32, -16/32, 16/32, -5/32, 16/32}}, groups = {dig_immediate=3, mesecon=3}, sounds = default.node_sound_defaults(), mesecons = { @@ -59,7 +59,7 @@ minetest.register_node("mesecons_extrawires:crossover_01", { is_ground_content = false, walkable = false, stack_max = 99, - selection_box = {type="fixed", fixed={-16/32-0.0001, -16/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + selection_box = {type="fixed", fixed={-16/32, -16/32, -16/32, 16/32, -5/32, 16/32}}, groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1}, sounds = default.node_sound_defaults(), mesecons = { @@ -86,7 +86,7 @@ minetest.register_node("mesecons_extrawires:crossover_10", { is_ground_content = false, walkable = false, stack_max = 99, - selection_box = {type="fixed", fixed={-16/32-0.0001, -16/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + selection_box = {type="fixed", fixed={-16/32, -16/32, -16/32, 16/32, -5/32, 16/32}}, groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1}, sounds = default.node_sound_defaults(), mesecons = { @@ -113,7 +113,7 @@ minetest.register_node("mesecons_extrawires:crossover_on", { is_ground_content = false, walkable = false, stack_max = 99, - selection_box = {type="fixed", fixed={-16/32-0.0001, -16/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}}, + selection_box = {type="fixed", fixed={-16/32, -16/32, -16/32, 16/32, -5/32, 16/32}}, groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1}, sounds = default.node_sound_defaults(), mesecons = { 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) 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}, |