From 8d2ce1c1ae54736725a65dc8ca4066c959055814 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sat, 18 Dec 2021 16:35:40 +0900 Subject: - Index out of bounds (-1) --- .../features/impl/party/customgui/PanelPartyListElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java index b98598e4..1def0528 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java @@ -108,7 +108,7 @@ public class PanelPartyListElement extends MPanel { } } - boolean nodupe = note.toLowerCase().contains("nodupe") || note.toLowerCase().contains("no dupe") || (note.toLowerCase().contains("nd") && (note.indexOf("nd") == 0 || note.charAt(note.indexOf("nd")-1) == ' ')); + boolean nodupe = note.toLowerCase().contains("nodupe") || note.toLowerCase().contains("no dupe") || (note.toLowerCase().contains("nd") && (note.toLowerCase().indexOf("nd") == 0 || note.charAt(note.toLowerCase().indexOf("nd")-1) == ' ')); note = note.replaceAll("(?i)(S\\+)", "§6$1§r"); note = note.replaceAll("(?i)(carry)", "§4$1§r"); -- cgit