aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-13 19:52:11 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-13 19:52:11 +0100
commite0e473e47453a3d7de37e0fd71e6f08a65ccc9f0 (patch)
treefc4bf7b1773a09c83089c3bec2563e3f02756c0f /src
parentedd1f10c784728913983e26ac40b49c485ad3a8e (diff)
downloadskyhanni-e0e473e47453a3d7de37e0fd71e6f08a65ccc9f0.tar.gz
skyhanni-e0e473e47453a3d7de37e0fd71e6f08a65ccc9f0.tar.bz2
skyhanni-e0e473e47453a3d7de37e0fd71e6f08a65ccc9f0.zip
Removed §r from tablist.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/HyPixelData.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/TabListUtils.kt2
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
}