diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TabListUtils.kt | 2 |
2 files changed, 3 insertions, 3 deletions
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<String> = ArrayList() for (info in players) { val name = Minecraft.getMinecraft().ingameGUI.tabList.getPlayerName(info) - result.add(name) + result.add(LorenzUtils.stripVanillaMessage(name)) } return result } |