forked from erle/bushy_leaves
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:
commit
9be33ef9c3
6
init.lua
6
init.lua
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue