Merge pull request 'Set full node collision box for bushy leaves' (#2) from fix-collision-box-2 into master

Reviewed-on: erlehmann/bushy_leaves#2
This commit is contained in:
1 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,11 @@ local node_box_bushy_leaves = {
}, },
} }
local node_box_full_node = {
type = "fixed",
fixed = { -8/16, -8/16, -8/16, 8/16, 8/16, 8/16 },
}
local get_node_box = function(node_name, node_def) local get_node_box = function(node_name, node_def)
local node_box local node_box
if ( if (
@ -52,6 +57,7 @@ local add_bushy_leaves = function()
{ {
drawtype = "nodebox", drawtype = "nodebox",
node_box = node_box, node_box = node_box,
collision_box = node_box_full_node,
} }
) )
end end