forked from minetest-mods/mesecons
Make insulated wires’ selection box fit in the node
This commit is contained in:
parent
c73b451f9b
commit
9e6eac4285
@ -8,7 +8,7 @@ local corner_nodebox = {
|
||||
|
||||
local corner_selectionbox = {
|
||||
type = "fixed",
|
||||
fixed = { -16/32-0.001, -18/32, -16/32, 5/32, -12/32, 5/32 },
|
||||
fixed = { -16/32-0.001, -16/32, -16/32, 5/32, -12/32, 5/32 },
|
||||
}
|
||||
|
||||
local corner_get_rules = function (node)
|
||||
|
@ -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, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||
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}},
|
||||
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, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||
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}},
|
||||
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, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||
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}},
|
||||
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, -18/32, -16/32-0.001, 16/32+0.001, -5/32, 16/32+0.001}},
|
||||
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}},
|
||||
groups = {dig_immediate=3, mesecon=3, not_in_creative_inventory=1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
mesecons = {
|
||||
|
@ -8,7 +8,7 @@ local tjunction_nodebox = {
|
||||
|
||||
local tjunction_selectionbox = {
|
||||
type = "fixed",
|
||||
fixed = { -16/32-0.001, -18/32, -16/32, 16/32+0.001, -12/32, 7/32 },
|
||||
fixed = { -16/32-0.001, -16/32, -16/32, 16/32+0.001, -12/32, 7/32 },
|
||||
}
|
||||
|
||||
local tjunction_get_rules = function (node)
|
||||
|
@ -27,7 +27,7 @@ minetest.register_node("mesecons_insulated:insulated_on", {
|
||||
sunlight_propagates = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 }
|
||||
fixed = { -16/32-0.001, -16/32, -7/32, 16/32+0.001, -12/32, 7/32 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -63,7 +63,7 @@ minetest.register_node("mesecons_insulated:insulated_off", {
|
||||
sunlight_propagates = true,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -16/32-0.001, -18/32, -7/32, 16/32+0.001, -12/32, 7/32 }
|
||||
fixed = { -16/32-0.001, -16/32, -7/32, 16/32+0.001, -12/32, 7/32 }
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
Loading…
Reference in New Issue
Block a user