Skip to content

Commit

Permalink
Fix chatLines list not being cleared properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Irgendwer01 committed Feb 18, 2024
1 parent 24d8295 commit 1d50ec8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void utCompactMessage(ITextComponent chatComponent, int chatLineId, int u
}
}
this.drawnChatLines.removeIf(chatLine1 -> splittedText.contains(chatLine1.getChatComponent()) || chatLine1.equals(chatLine));
this.chatLines.removeIf(chatLine1 -> splittedText.contains(chatLine1.getChatComponent()) || chatLine1.equals(chatLine));
this.chatLines.removeIf(chatLine1 -> chatLine1.getChatComponent().getUnformattedComponentText().equals(chatComponent.getUnformattedComponentText()));
chatComponent.appendSibling(new TextComponentString(" (" + count + ")").setStyle(new Style().setColor(TextFormatting.GRAY)));
break;
}
Expand Down

0 comments on commit 1d50ec8

Please sign in to comment.