mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-18 00:08:25 +01:00
Merge branch 'master' of https://github.com/Ombridride/minetest-minetestforfun-server
This commit is contained in:
commit
de5a7b6100
@ -660,13 +660,6 @@ lifetimer = def.lifetimer or 600,
|
||||
entity_physics(pos, 3) -- hurt player/mobs caught in blast area
|
||||
if minetest.find_node_near(pos, 1, {"group:water"})
|
||||
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()
|
||||
if self.sounds.explode ~= "" then
|
||||
minetest.sound_play(self.sounds.explode, {pos = pos, gain = 1.0, max_hear_distance = 16})
|
||||
@ -1104,7 +1097,6 @@ function mobs:explosion(pos, radius, fire, smoke, sound)
|
||||
vi = vi + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- on mob death drop items
|
||||
|
Loading…
Reference in New Issue
Block a user