From 9ffca3f19c09b579f9ffa9c6874bba8b35c14543 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 21 Aug 2023 19:37:39 +0200 Subject: [PATCH] Fix Infinite Chat Box --- .../meteordevelopment/meteorclient/mixin/ChatScreenMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java b/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java index c2463e8fd8..e0a3086f69 100644 --- a/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java +++ b/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java @@ -19,7 +19,7 @@ public abstract class ChatScreenMixin { @Shadow protected TextFieldWidget chatField; - @Inject(method = "init", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/widget/TextFieldWidget;setMaxLength(I)V", shift = At.Shift.AFTER)) + @Inject(method = "init", at = @At(value = "TAIL")) private void onInit(CallbackInfo info) { if (Modules.get().get(BetterChat.class).isInfiniteChatBox()) chatField.setMaxLength(Integer.MAX_VALUE); }