From 3227e5368d22639ba1267fd6c4de336f1b37f6be Mon Sep 17 00:00:00 2001 From: RTTV Date: Sat, 28 Sep 2024 10:34:58 -0400 Subject: [PATCH] np --- .../clientcommands/command/ReplyCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/earthcomputer/clientcommands/command/ReplyCommand.java b/src/main/java/net/earthcomputer/clientcommands/command/ReplyCommand.java index 7621311f2..d9660d1b3 100644 --- a/src/main/java/net/earthcomputer/clientcommands/command/ReplyCommand.java +++ b/src/main/java/net/earthcomputer/clientcommands/command/ReplyCommand.java @@ -42,11 +42,11 @@ public static int reply(FabricClientCommandSource source, Component message) thr throw NO_TARGET_FOUND_EXCEPTION.create(); } - String text = message.getString(); + String text = message.getString(); - if (3 + currentTarget.length() + 1 + text.length() > 256) { - throw MESSAGE_TOO_LONG_EXCEPTION.create(256 - (3 + currentTarget.length() + 1), text.length()); - } + if (3 + currentTarget.length() + 1 + text.length() > 256) { + throw MESSAGE_TOO_LONG_EXCEPTION.create(256 - (3 + currentTarget.length() + 1), text.length()); + } source.getClient().getConnection().sendCommand(String.format("w %s %s", currentTarget, text));