aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
Diffstat (limited to 'mod/src/main/java/kr/syeyoung')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/cosmetics/CosmeticsManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/cosmetics/CosmeticsManager.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/cosmetics/CosmeticsManager.java
index 505173f9..82c4b6cb 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/cosmetics/CosmeticsManager.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/cosmetics/CosmeticsManager.java
@@ -340,7 +340,8 @@ public class CosmeticsManager {
if (startingSearch == -1) break;
if (startingSearch-1 >= 0) {
char c = beforeUsername.charAt(startingSearch-1);
- if (c == ']') continue;
+ int next = beforeUsername.lastIndexOf(' ', startingSearch-1);
+ if (c == ']' && beforeUsername.charAt(next+1) == '[') continue;
startingSearch ++;
break;
}