Make bushy leaves/needles just visual

Now collision works just like if it was regular leaves/needles node, not making walking on leaves/needles such pain
This commit is contained in:
Mikita Wiśniewski 2022-05-10 21:32:11 +07:00
parent 763ca3e7d4
commit 78e6a32873
1 changed files with 2 additions and 7 deletions

View File

@ -34,12 +34,7 @@ local node_box_bushy_leaves = {
local node_box_full_node = { local node_box_full_node = {
type = "fixed", type = "fixed",
fixed = { -8/16, -8/16, -8/16, 8/16, 8/16, 8/16 }, fixed = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 },
}
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)
@ -48,7 +43,7 @@ local get_node_box = function(node_name, node_def)
string.match(node_name, "leaves") or string.match(node_name, "leaves") or
string.match(node_name, "needles") string.match(node_name, "needles")
) then ) then
node_box = node_box_bushy_leaves node_box = node_box_bushy_leaves,
collision_box = node_box_full_node collision_box = node_box_full_node
end end
return node_box return node_box