Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'development' into npefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanzhoudev authored Sep 15, 2023
2 parents c5b1127 + 76ed2da commit 0e2934c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/main/java/com/wynntils/modules/chat/overlays/ChatOverlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,18 @@ public void deleteChatLine(int id) {
});

int[] count = { 0 };
currentTab.getCurrentMessages().removeIf(chatline -> {
if (chatline.getChatLineID() == id) {
++count[0];
return true;
}
return false;
});
try {
currentTab.getCurrentMessages().removeIf(chatline -> {
if (chatline.getChatLineID() == id) {
++count[0];
return true;
}
return false;
});
} catch (Exception ex) {
ex.printStackTrace();
return;
}

if (scrollPos > 0 && getChatOpen() && count[0] > 0) {
isScrolled = true;
Expand Down

0 comments on commit 0e2934c

Please sign in to comment.