aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-15 22:10:39 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-15 22:10:39 +0100
commitee7538da5cb41c299794ba04ff3ee43a4cbbf9be (patch)
tree32a3d6728d2bee6d46aca94d230c84a5d874ffc7 /src/main/java/at
parentc6fa37efbaa842dcc393bc774a20c7ad0d878175 (diff)
parent5b69a86a091f266b0ec0b94c1b3ab38327b7dfd9 (diff)
downloadskyhanni-ee7538da5cb41c299794ba04ff3ee43a4cbbf9be.tar.gz
skyhanni-ee7538da5cb41c299794ba04ff3ee43a4cbbf9be.tar.bz2
skyhanni-ee7538da5cb41c299794ba04ff3ee43a4cbbf9be.zip
Merge branch 'dev' into crimson_isle_reputation
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/DevData.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/DevData.java b/src/main/java/at/hannibal2/skyhanni/config/features/DevData.java
index 85b527947..0c8f29eb3 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/DevData.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/DevData.java
@@ -125,6 +125,12 @@ public class DevData {
public boolean filterBiomeIdBounds = false;
@Expose
+ @ConfigOption(name = "Http Texture", desc = "Filter message 'Couldn't download http texture'.")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 2)
+ public boolean couldNotDownloadHttpTexture = false;
+
+ @Expose
@ConfigOption(name = "Print Event Timings", desc = "Prints every 10 seconds the timings of all SkyHanni events in the chat.")
@ConfigEditorBoolean
public boolean printEventTimings = false;
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt
index da359ff1e..61e53ff9d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt
@@ -89,6 +89,13 @@ class MinecraftConsoleFilter(private val loggerConfigName: String) : Filter {
}
}
}
+
+ if (SkyHanniMod.feature.dev.couldNotDownloadHttpTexture) {
+ if (formattedMessage == "Couldn't download http texture: java.net.ConnectException: Connection refused: connect") {
+ filterConsole("Http Texture")
+ return Filter.Result.DENY
+ }
+ }
//TODO find a way to load the filter earlier to filter these messages too
// if (loggerName == "LaunchWrapper") {
// //The jar file C:\Users\Lorenz\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\lwjgl\2.9.4-nightly-20150209\lwjgl-2.9.4-nightly-20150209.jar has a security seal for path org.lwjgl.opengl, but that path is defined and not secure