Skip to content

Commit 9e6eac4

Browse files
numberZerosfan5
authored andcommittedSep 7, 2018
Make insulated wires’ selection box fit in the node
1 parent c73b451 commit 9e6eac4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎mesecons_extrawires/corner.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local corner_nodebox = {
88

99
local corner_selectionbox = {
1010
type = "fixed",
11-
fixed = { -16/32-0.001, -18/32, -16/32, 5/32, -12/32, 5/32 },
11+
fixed = { -16/32-0.001, -16/32, -16/32, 5/32, -12/32, 5/32 },
1212
}
1313

1414
local corner_get_rules = function (node)

‎mesecons_extrawires/crossover.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ minetest.register_node("mesecons_extrawires:crossover_off", {
3232
is_ground_content = false,
3333
walkable = false,
3434
stack_max = 99,
35-
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
35+
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}},
3636
groups = {dig_immediate=3, mesecon=3},
3737
sounds = default.node_sound_defaults(),
3838
mesecons = {
@@ -59,7 +59,7 @@ minetest.register_node("mesecons_extrawires:crossover_01", {
5959
is_ground_content = false,
6060
walkable = false,
6161
stack_max = 99,
62-
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
62+
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}},
6363
groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1},
6464
sounds = default.node_sound_defaults(),
6565
mesecons = {
@@ -86,7 +86,7 @@ minetest.register_node("mesecons_extrawires:crossover_10", {
8686
is_ground_content = false,
8787
walkable = false,
8888
stack_max = 99,
89-
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
89+
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}},
9090
groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1},
9191
sounds = default.node_sound_defaults(),
9292
mesecons = {
@@ -113,7 +113,7 @@ minetest.register_node("mesecons_extrawires:crossover_on", {
113113
is_ground_content = false,
114114
walkable = false,
115115
stack_max = 99,
116-
selection_box = {type="fixed", fixed={-16/32-0.0001, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
116+
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}},
117117
groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1},
118118
sounds = default.node_sound_defaults(),
119119
mesecons = {

‎mesecons_extrawires/tjunction.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local tjunction_nodebox = {
88

99
local tjunction_selectionbox = {
1010
type = "fixed",
11-
fixed = { -16/32-0.001, -18/32, -16/32, 16/32+0.001, -12/32, 7/32 },
11+
fixed = { -16/32-0.001, -16/32, -16/32, 16/32+0.001, -12/32, 7/32 },
1212
}
1313

1414
local tjunction_get_rules = function (node)

‎mesecons_insulated/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ minetest.register_node("mesecons_insulated:insulated_on", {
2727
sunlight_propagates = true,
2828
selection_box = {
2929
type = "fixed",
30-
fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 }
30+
fixed = { -16/32-0.001, -16/32, -7/32, 16/32+0.001, -12/32, 7/32 }
3131
},
3232
node_box = {
3333
type = "fixed",
@@ -63,7 +63,7 @@ minetest.register_node("mesecons_insulated:insulated_off", {
6363
sunlight_propagates = true,
6464
selection_box = {
6565
type = "fixed",
66-
fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 }
66+
fixed = { -16/32-0.001, -16/32, -7/32, 16/32+0.001, -12/32, 7/32 }
6767
},
6868
node_box = {
6969
type = "fixed",

0 commit comments

Comments
 (0)
Please sign in to comment.