1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-12-24 17:40:19 +01:00

fix felling farns: fern_trunk_big

This commit is contained in:
nixnoxus 2022-01-10 19:32:04 +01:00
parent 7094d8a369
commit 32bab30e1f

View File

@ -162,6 +162,14 @@ minetest.register_node("ferns:tree_fern_leave_big", {
},
drop = "",
sounds = default.node_sound_leaves_defaults(),
after_destruct = function(pos,oldnode)
for _, d in pairs({{x=-1,z=0},{x=1,z=0},{x=0,z=-1},{x=0,z=1}}) do
local node = minetest.get_node({x=pos.x+d.x,y=pos.y+1,z=pos.z+d.z})
if node.name == "ferns:tree_fern_leave_big" then
minetest.dig_node({x=pos.x+d.x,y=pos.y+1,z=pos.z+d.z})
end
end
end,
})
-----------------------------------------------------------------------------------------------