From 63783a17951460a33c37043ed071a505c0e86a63 Mon Sep 17 00:00:00 2001 From: Mythril382 <77225817+Mythril382@users.noreply.github.com> Date: Fri, 12 Apr 2024 12:15:32 +0800 Subject: [PATCH] why don't you do this by default --- core/src/mindustry/logic/LExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/logic/LExecutor.java b/core/src/mindustry/logic/LExecutor.java index ade424afd4..91d62b1a06 100644 --- a/core/src/mindustry/logic/LExecutor.java +++ b/core/src/mindustry/logic/LExecutor.java @@ -2046,7 +2046,7 @@ public class LExecutor{ if(positional){ sound.sound.at(World.unconv(exec.numf(x)), World.unconv(exec.numf(y)), exec.numf(pitch), exec.numf(volume)); }else{ - sound.sound.play(exec.numf(volume), exec.numf(pitch), exec.numf(pan)); + sound.sound.play(exec.numf(volume) * Core.audio.sfxVolume, exec.numf(pitch), exec.numf(pan)); } } }