From fcf8ecfd35bebc5752e2998901cd9022b98664cc Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 25 Sep 2015 07:48:07 -0400 Subject: [PATCH] simplify shrubbery collision/selection box --- homedecor/exterior.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homedecor/exterior.lua b/homedecor/exterior.lua index a5164fa..9452cab 100644 --- a/homedecor/exterior.lua +++ b/homedecor/exterior.lua @@ -378,6 +378,8 @@ homedecor.shrub_colors = { "yellow" } +local shrub_cbox = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } + for _, color in ipairs(homedecor.shrub_colors) do minetest.register_node("homedecor:shrubbery_large_"..color, { description = S("Shrubbery ("..color..")"), @@ -401,6 +403,8 @@ for _, color in ipairs(homedecor.shrub_colors) do is_ground_content = false, groups = {snappy=3, flammable=2}, sounds = default.node_sound_leaves_defaults(), + selection_box = shrub_cbox, + collision_box = shrub_cbox, node_box = shrub_model }) end