From 7e04f928f8a10cca4fe0650f34c0dae7a5bab9ab Mon Sep 17 00:00:00 2001 From: R2VvcmdlUk5H <81434111+GeorgeRNG@users.noreply.github.com> Date: Sat, 1 Oct 2022 15:27:06 +0100 Subject: [PATCH] Volume and pitch were inverted on PlaySound Minecraft internally has them the other way round --- .../techstreet/dfscript/script/action/ScriptActionType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/techstreet/dfscript/script/action/ScriptActionType.java b/src/main/java/io/github/techstreet/dfscript/script/action/ScriptActionType.java index 1d3926e..a9312e8 100644 --- a/src/main/java/io/github/techstreet/dfscript/script/action/ScriptActionType.java +++ b/src/main/java/io/github/techstreet/dfscript/script/action/ScriptActionType.java @@ -1127,7 +1127,7 @@ public enum ScriptActionType { } if (snd != null) { - io.github.techstreet.dfscript.DFScript.MC.getSoundManager().play(PositionedSoundInstance.master(snd, (float) volume, (float) pitch)); + io.github.techstreet.dfscript.DFScript.MC.getSoundManager().play(PositionedSoundInstance.master(snd, (float) pitch, (float) volume)); } else { ChatUtil.error("Unknown sound: " + sound);