diff --git a/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java b/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java index e0a3086f69..379cfb8868 100644 --- a/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java +++ b/src/main/java/meteordevelopment/meteorclient/mixin/ChatScreenMixin.java @@ -15,11 +15,11 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; -@Mixin(ChatScreen.class) +@Mixin(value = ChatScreen.class, priority = 1001) public abstract class ChatScreenMixin { @Shadow protected TextFieldWidget chatField; - @Inject(method = "init", at = @At(value = "TAIL")) + @Inject(method = "init", at = @At(value = "RETURN")) private void onInit(CallbackInfo info) { if (Modules.get().get(BetterChat.class).isInfiniteChatBox()) chatField.setMaxLength(Integer.MAX_VALUE); }