1
0
Fork 0

Fix sound/particle bug in mcl_explosions

This commit is contained in:
Elias Åström 2020-07-17 00:39:33 +02:00
parent ca9578d50c
commit ea1ad14f72
1 changed files with 2 additions and 2 deletions

View File

@ -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