Fix weird arguments given to is_protected
This commit is contained in:
parent
dee5f3bda6
commit
aa3739528b
6 changed files with 31 additions and 10 deletions
|
@ -204,7 +204,7 @@ tnt.boom = function(pos, info)
|
|||
end
|
||||
minetest.sound_play(sound, {pos = pos,gain = 1.0,max_hear_distance = 16,})
|
||||
local node = minetest.get_node(pos)
|
||||
if minetest.get_item_group("water") == 1 or minetest.get_item_group("lava") == 1 or minetest.is_protected(pos, "tnt") then
|
||||
if minetest.get_item_group("water") == 1 or minetest.get_item_group("lava") == 1 then
|
||||
-- Cancel the Explosion
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue