mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 09:25:10 +00:00
Simplify TNT explosion check
This commit is contained in:
parent
a922dc6cc6
commit
0f70bd740d
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ tnt.boom = function(pos, info)
|
||||||
end
|
end
|
||||||
minetest.sound_play(sound, {pos = pos,gain = 1.0,max_hear_distance = 16,})
|
minetest.sound_play(sound, {pos = pos,gain = 1.0,max_hear_distance = 16,})
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
if minetest.get_item_group("water") == 1 or minetest.get_item_group("lava") == 1 or minetest.get_node(pos).name == "mcl_core:bedrock" or minetest.get_node(pos).name == "protector:display" or minetest.is_protected(pos, "tnt") then
|
if minetest.get_item_group("water") == 1 or minetest.get_item_group("lava") == 1 or minetest.is_protected(pos, "tnt") then
|
||||||
-- Cancel the Explosion
|
-- Cancel the Explosion
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue