mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-17 17:15:11 +00:00
Fix vines destruction not destoying hanging vines
This commit is contained in:
parent
1e2343d649
commit
2a8fcd119b
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ minetest.register_node("mcl_core:vine", {
|
||||||
after_destruct = function(pos, oldnode)
|
after_destruct = function(pos, oldnode)
|
||||||
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||||
local belownode = minetest.get_node(below)
|
local belownode = minetest.get_node(below)
|
||||||
if belownode.name == oldnode.name and mcl_core.check_vines_supported(below, belownode) then
|
if belownode.name == oldnode.name and (not mcl_core.check_vines_supported(below, belownode)) then
|
||||||
minetest.remove_node(below)
|
minetest.remove_node(below)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue