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) {