More changes

This commit is contained in:
2022-11-21 20:06:10 -05:00
parent 929a34a41c
commit 30c580fe5d
34 changed files with 32 additions and 336 deletions

View File

@@ -346,7 +346,7 @@ local function tnt_explode(pos, radius, ignore_protection, ignore_on_blast, owne
-- What I'm trying to do is to make the explosions only affect nodes that are in a specific group
if cid ~= c_air and cid ~= c_ignore and minetest.get_item_group(minetest.get_name_from_content_id(cid), "cracky") < 2 then
if cid ~= c_air and cid ~= c_ignore and minetest.get_item_group(minetest.get_name_from_content_id(cid), "cracky") > 2 then
data[vi] = destroy(drops, p, cid, c_air, c_fire, on_blast_queue, on_construct_queue, ignore_protection, ignore_on_blast, owner)
destruction_counter.nodesDestroyed = destruction_counter.nodesDestroyed + 1
destruction_counter.updateCounter(owner)