Skip to content

Commit

Permalink
Fix Infinite Chat Box
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick authored and Wide-Cat committed Aug 21, 2023
1 parent 775939d commit 9ffca3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9ffca3f

Please sign in to comment.