Skip to content

Commit 7e04f92

Browse files
committed
Volume and pitch were inverted on PlaySound
Minecraft internally has them the other way round
1 parent d1d6546 commit 7e04f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/techstreet/dfscript/script/action/ScriptActionType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ public enum ScriptActionType {
11271127
}
11281128

11291129
if (snd != null) {
1130-
io.github.techstreet.dfscript.DFScript.MC.getSoundManager().play(PositionedSoundInstance.master(snd, (float) volume, (float) pitch));
1130+
io.github.techstreet.dfscript.DFScript.MC.getSoundManager().play(PositionedSoundInstance.master(snd, (float) pitch, (float) volume));
11311131
} else {
11321132
ChatUtil.error("Unknown sound: " + sound);
11331133

0 commit comments

Comments
 (0)