diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2023-02-25 20:59:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-25 20:59:02 +0900 |
commit | b5be20cce7084314310b8092518ec723968ceffd (patch) | |
tree | c4aaafc81afac2bf122c03396b0900c1f9b10804 | |
parent | 2592718d6241b88192d58c48d94904efa46b18fe (diff) | |
download | Skyblock-Dungeons-Guide-b5be20cce7084314310b8092518ec723968ceffd.tar.gz Skyblock-Dungeons-Guide-b5be20cce7084314310b8092518ec723968ceffd.tar.bz2 Skyblock-Dungeons-Guide-b5be20cce7084314310b8092518ec723968ceffd.zip |
- Fix #336, by making sure something that ends with ] also starts with [ (prefix check) (#337)
Signed-off-by: syeyoung <cyoung06@naver.com>
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/cosmetics/CosmeticsManager.java | 3 |
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; } |