1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-30 08:20:32 +02:00
This commit is contained in:
Quentin BUISSON-DEBON 2015-04-28 15:47:10 +02:00
commit de5a7b6100

View File

@ -660,13 +660,6 @@ lifetimer = def.lifetimer or 600,
entity_physics(pos, 3) -- hurt player/mobs caught in blast area entity_physics(pos, 3) -- hurt player/mobs caught in blast area
if minetest.find_node_near(pos, 1, {"group:water"}) if minetest.find_node_near(pos, 1, {"group:water"})
or minetest.is_protected(pos, "") then or minetest.is_protected(pos, "") then
self.object:remove()
if self.sounds.explode ~= "" then
minetest.sound_play(self.sounds.explode, {pos = pos, gain = 1.0, max_hear_distance = 16})
end
effect(pos, 10, "tnt_smoke.png")
return
end
self.object:remove() self.object:remove()
if self.sounds.explode ~= "" then if self.sounds.explode ~= "" then
minetest.sound_play(self.sounds.explode, {pos = pos, gain = 1.0, max_hear_distance = 16}) minetest.sound_play(self.sounds.explode, {pos = pos, gain = 1.0, max_hear_distance = 16})
@ -1105,7 +1098,6 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
end end
end end
end end
end
-- on mob death drop items -- on mob death drop items
function check_for_death(self) function check_for_death(self)