Prevent unsuspend noise on loose leaves

This commit is contained in:
Aaron Suen 2023-11-16 18:12:59 -05:00
parent 5ece643b48
commit e59b057783

View File

@ -57,10 +57,14 @@ minetest.register_globalstep(function()
if not bnode then
pend(pos)
elseif fallthru[bnode.name] then
nodecore.log("action", "falling node unsuspend at "
.. minetest.pos_to_string(pos))
minetest.check_for_falling(pos)
if toomanyents() then break end
local node = minetest.get_node(pos)
if node.name ~= bnode.name then
nodecore.log("action",
"falling node unsuspend at "
.. minetest.pos_to_string(pos))
minetest.check_for_falling(pos)
if toomanyents() then break end
end
end
end
batchpos = batchpos + 1