Improve some selection boxes

This commit is contained in:
cheapie 2019-06-02 13:21:05 -05:00
parent 4547e436f7
commit d773a87c6a

@ -130,12 +130,19 @@ minetest.register_node("digistuff:receiver", {
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.05,-0.05,-1.49,0.05,0.05,-0.5}, {-0.05,-0.05,-1.49,0.05,0.05,-0.5},
{-0.2,-0.2,-0.5,0.2,0.2,-0.4}, {-0.2,-0.2,-0.5,0.2,0.2,-0.4},
{-0.0625,-0.5,-0.5,0.0625,-0.2,-0.4}, {-0.0625,-0.5,-0.5,0.0625,-0.2,-0.4},
{-0.0625,-0.5,-0.4,0.0625,-0.4375,0.5}, {-0.0625,-0.5,-0.4,0.0625,-0.4375,0.5},
}, },
}, },
selection_box = {
type = "fixed",
fixed = {
{-0.2,-0.5,-0.5,0.2,0.2,0.5},
{-0.075,-0.075,-1.49,0.075,0.075,-0.5},
},
},
digiline = { digiline = {
receptor = {}, receptor = {},
wire = { wire = {
@ -297,6 +304,12 @@ minetest.register_node("digistuff:insulated_straight", {
{-0.5,-0.5,-0.1,0.5,-0.4,0.1}, {-0.5,-0.5,-0.1,0.5,-0.4,0.1},
}, },
}, },
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.15,0.5,-0.35,0.15},
},
},
after_place_node = digilines.update_autoconnect, after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect, after_destruct = digilines.update_autoconnect,
digiline = { digiline = {
@ -338,6 +351,12 @@ minetest.register_node("digistuff:insulated_tjunction", {
{-0.1,-0.5,-0.5,0.1,-0.4,-0.1}, {-0.1,-0.5,-0.5,0.1,-0.4,-0.1},
}, },
}, },
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,-0.35,0.15},
},
},
after_place_node = digilines.update_autoconnect, after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect, after_destruct = digilines.update_autoconnect,
digiline = { digiline = {
@ -380,6 +399,12 @@ minetest.register_node("digistuff:insulated_corner", {
{-0.5,-0.5,-0.1,0.1,-0.4,0.1}, {-0.5,-0.5,-0.1,0.1,-0.4,0.1},
}, },
}, },
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.15,-0.35,0.15},
},
},
after_place_node = digilines.update_autoconnect, after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect, after_destruct = digilines.update_autoconnect,
digiline = { digiline = {
@ -420,6 +445,12 @@ minetest.register_node("digistuff:insulated_fourway", {
{-0.1,-0.5,0.1,0.1,-0.4,0.5}, {-0.1,-0.5,0.1,0.1,-0.4,0.5},
}, },
}, },
selection_box = {
type = "fixed",
fixed = {
{-0.5,-0.5,-0.5,0.5,-0.35,0.5},
},
},
after_place_node = digilines.update_autoconnect, after_place_node = digilines.update_autoconnect,
after_destruct = digilines.update_autoconnect, after_destruct = digilines.update_autoconnect,
digiline = { digiline = {