From 4e56529a71b44f3297888e97498cea0c6c4de16b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:05:18 +0100 Subject: fixed hypixel update: showing `new` next to garden visitors in tab list (#1151) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt | 6 ++++-- 1 file 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 } -- cgit