mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 05:01:41 -04:00
Update mods/tnt/init.lua
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
5af19f7a65
commit
d8fc0da49a
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
-- Used to efficiently remove metadata of nodes that were destroyed.
|
||||||
-- Metadata is probably sparse, so this may save us some work.
|
-- 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 = {}
|
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
|
has_meta[a:indexp(p)] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue