From e0e473e47453a3d7de37e0fd71e6f08a65ccc9f0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 13 Jan 2023 19:52:11 +0100 Subject: Removed §r from tablist. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt | 4 ++-- src/main/java/at/hannibal2/skyhanni/utils/TabListUtils.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt index 2bb7c7678..30e03732e 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt @@ -123,10 +123,10 @@ class HyPixelData { var newIsland = "" var guesting = false for (line in TabListUtils.getTabList()) { - if (line.startsWith("§r§b§lArea: ")) { + if (line.startsWith("§b§lArea: ")) { newIsland = line.split(": ")[1].removeColor() } - if (line == "§r Status: §r§9Guest§r") { + if (line == " Status: §r§9Guest") { guesting = true } } diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TabListUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/TabListUtils.kt index 15b5a10ef..a81675f74 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TabListUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TabListUtils.kt @@ -34,7 +34,7 @@ object TabListUtils { val result: MutableList = ArrayList() for (info in players) { val name = Minecraft.getMinecraft().ingameGUI.tabList.getPlayerName(info) - result.add(name) + result.add(LorenzUtils.stripVanillaMessage(name)) } return result } -- cgit