Update mods/tnt/init.lua

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
Lars Müller 2025-01-18 16:27:32 +01:00 committed by GitHub
parent 5af19f7a65
commit d8fc0da49a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -347,9 +347,8 @@ local function tnt_explode(pos, radius, ignore_protection, ignore_on_blast, owne
-- Used to efficiently remove metadata of nodes that were destroyed.
-- Metadata is probably sparse, so this may save us some work.
local poses_with_meta = minetest.find_nodes_with_meta(p1, p2)
local has_meta = {}
for _, p in ipairs(poses_with_meta) do
for _, p in ipairs(minetest.find_nodes_with_meta(p1, p2)) do
has_meta[a:indexp(p)] = true
end