mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Fix sound/particle bug in mcl_explosions
This commit is contained in:
parent
ca9578d50c
commit
ea1ad14f72
1 changed files with 2 additions and 2 deletions
|
@ -386,10 +386,10 @@ function mcl_explosions.explode(pos, strength, info, puncher)
|
|||
local creative_enabled = minetest.is_creative_enabled("")
|
||||
trace_explode(pos, strength, shape, radius, (info and info.drop_chance) or 1 / strength, info.fire == true, puncher, creative_enabled)
|
||||
|
||||
if not (info and info.no_sound) then
|
||||
if not (info and info.no_particle) then
|
||||
add_particles(pos, radius)
|
||||
end
|
||||
if not (info and info.no_particle) then
|
||||
if not (info and info.no_sound) then
|
||||
minetest.sound_play("tnt_explode", {
|
||||
pos = pos, gain = 1.0,
|
||||
max_hear_distance = strength * 16
|
||||
|
|
Loading…
Reference in a new issue