From 2a11943f37b53df503b5120f6ae527ef31553d9b Mon Sep 17 00:00:00 2001 From: rttv Date: Sun, 17 May 2026 19:42:47 -0400 Subject: [PATCH] fix #783 --- .../clientcommands/command/CPlaySoundCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/earthcomputer/clientcommands/command/CPlaySoundCommand.java b/src/main/java/net/earthcomputer/clientcommands/command/CPlaySoundCommand.java index 68df0274d..f67ee92cd 100644 --- a/src/main/java/net/earthcomputer/clientcommands/command/CPlaySoundCommand.java +++ b/src/main/java/net/earthcomputer/clientcommands/command/CPlaySoundCommand.java @@ -38,8 +38,8 @@ private static LiteralArgumentBuilder buildArguments( .executes(ctx -> playSound(ctx.getSource(), getId(ctx, "sound"), source, getVec3(ctx, "pos"), 1, 1)) .then(argument("volume", floatArg(0)) .executes(ctx -> playSound(ctx.getSource(), getId(ctx, "sound"), source, getVec3(ctx, "pos"), getFloat(ctx, "volume"), 1)) - .then(argument("pitch", floatArg(0, 2))) - .executes(ctx -> playSound(ctx.getSource(), getId(ctx, "sound"), source, getVec3(ctx, "pos"), getFloat(ctx, "volume"), getFloat(ctx, "pitch"))))); + .then(argument("pitch", floatArg(0, 2)) + .executes(ctx -> playSound(ctx.getSource(), getId(ctx, "sound"), source, getVec3(ctx, "pos"), getFloat(ctx, "volume"), getFloat(ctx, "pitch")))))); } private static int playSound(FabricClientCommandSource source, Identifier sound, SoundSource soundSource, Vec3 pos, float volume, float pitch) {