Protect from explosions

This commit is contained in:
kay27 2020-08-10 22:04:27 +04:00
parent c424b036b2
commit 9537eaead0
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ local function trace_explode(pos, strength, raydirs, radius, drop_chance, fire,
break
end
if cid ~= minetest.CONTENT_AIR then
if cid ~= minetest.CONTENT_AIR and not minetest.is_protected({x = npos_x, y = npos_y, z = npos_z}, "") then
destroy[hash] = idx
end
end