aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-13 19:53:49 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-13 19:53:49 +0100
commitaa9d4e27890ff8cf251d87cadea956646dfe3afa (patch)
tree0068e652a0724d1e91eb84072c9ae9f77dd021f5
parentd95e0aa088b72e485d77d340a8c3d46bf12408e7 (diff)
downloadSkyHanni-aa9d4e27890ff8cf251d87cadea956646dfe3afa.tar.gz
SkyHanni-aa9d4e27890ff8cf251d87cadea956646dfe3afa.tar.bz2
SkyHanni-aa9d4e27890ff8cf251d87cadea956646dfe3afa.zip
Successfully hiding console message "A team with the name x already exist" message.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt
index 1036dab62..da359ff1e 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt
@@ -150,7 +150,7 @@ class MinecraftConsoleFilter(private val loggerConfigName: String) : Filter {
}
}
if (SkyHanniMod.feature.dev.filterScoreboardErrors) {
- if (thrown.toString() == "java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: A team with the name '") {
+ if (thrown.toString().contains(" java.lang.IllegalArgumentException: A team with the name '")) {
filterConsole("IllegalArgumentException because scoreboard team already exists")
return Filter.Result.DENY
}