diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-03-12 21:05:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 21:05:18 +0100 |
commit | 4e56529a71b44f3297888e97498cea0c6c4de16b (patch) | |
tree | a29e0cb16010a8d5d9de0739521ea2ef91ee6af1 /src | |
parent | 4352ffb08d4bfffc06adad2a068f375ab9874333 (diff) | |
download | skyhanni-4e56529a71b44f3297888e97498cea0c6c4de16b.tar.gz skyhanni-4e56529a71b44f3297888e97498cea0c6c4de16b.tar.bz2 skyhanni-4e56529a71b44f3297888e97498cea0c6c4de16b.zip |
fixed hypixel update: showing `new` next to garden visitors in tab list (#1151)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt index cedbe8839..ad7c6f192 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt @@ -168,8 +168,10 @@ object VisitorAPI { logger.log("Ignore wrong own name: '$name'") continue } - - visitorsInTab.add(name) + val finalName = if (name.endsWith(" §b§lNEW!")) { + name.split(" §b§lNEW!")[0] + } else name + visitorsInTab.add(finalName) } return visitorsInTab } |