RPMTW Platform

RPMTW Platform

259k Downloads

Conflict with Chat Heads

SiongSng opened this issue ยท 0 comments

commented

@Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/components/ChatComponent;getWidth()I"), method = "addMessage(Lnet/minecraft/network/chat/Component;Lnet/minecraft/network/chat/MessageSignature;ILnet/minecraft/client/GuiMessageTag;Z)V")
public int fixTextOverflow(ChatComponent chatHud) {
return ChatComponent.getWidth(minecraft.options.chatWidth().get()) - ChatComponentData.offset;
}

Log: https://mclo.gs/3OfJOdR