From ea1ad14f720ec6fe24575332160efc4f1c0654d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20=C3=85str=C3=B6m?= Date: Fri, 17 Jul 2020 00:39:33 +0200 Subject: [PATCH] Fix sound/particle bug in mcl_explosions --- mods/CORE/mcl_explosions/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_explosions/init.lua b/mods/CORE/mcl_explosions/init.lua index 9962f865..242f0518 100644 --- a/mods/CORE/mcl_explosions/init.lua +++ b/mods/CORE/mcl_explosions/init.lua @@ -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