Skip to content

Commit

Permalink
Make Infinite Chat Box compatible with ViaFabricPlus
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddyk45 authored and Wide-Cat committed Oct 16, 2023
1 parent 47b95b6 commit 1b705d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1b705d1

Please sign in to comment.