From e59b057783b11c77164338ce65557803f92e3329 Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Thu, 16 Nov 2023 18:12:59 -0500 Subject: [PATCH] Prevent unsuspend noise on loose leaves --- mods/nc_nodefall/unsuspend.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mods/nc_nodefall/unsuspend.lua b/mods/nc_nodefall/unsuspend.lua index 5721603a..f9010f99 100644 --- a/mods/nc_nodefall/unsuspend.lua +++ b/mods/nc_nodefall/unsuspend.lua @@ -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