Skip to content

Commit

Permalink
Try to fix #218
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuilder1961 authored Feb 1, 2025
1 parent 2f16be8 commit 6c72c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/obro1961/chatpatches/util/ChatUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ else if( config.counterCheckStyle && !copyWithoutContent(incoming).equals(copyWi

// remove the visible message(s) of the message being condensed
do visibles.remove(i);
while(!visibles.isEmpty() && !visibles.get(i).endOfEntry()); // continue removing them until the next message (EoE) is reached
while(i < visibles.size() && !visibles.get(i).endOfEntry()); // continue removing them until the next message (EoE) is reached

i--; // we removed the first message, but we don't want to skip the next one
attemptDistance--; // but we also don't want to check messages we shouldn't be checking
Expand Down

0 comments on commit 6c72c7b

Please sign in to comment.