From c6e3e87e6fecb8dd735047881a5080449501d086 Mon Sep 17 00:00:00 2001 From: Brady Date: Mon, 17 Jun 2024 05:50:30 -0230 Subject: Fix error where query is not checked for github instead path is (#2111) --- src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java index 862d17186..3f4755be3 100644 --- a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java +++ b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java @@ -121,7 +121,7 @@ public class DownloadSourceChecker { URI host = getHost(file); if (host == null) return null; - if (host.getHost().equals("objects.githubusercontent.com") && host.getPath().contains(GITHUB_REPO_TEXT)) { + if (host.getHost().equals("objects.githubusercontent.com") && host.getQuery().contains(GITHUB_REPO_TEXT)) { return null; } else if (host.getHost().equals("cdn.modrinth.com") && host.getPath().startsWith(MODRINTH_URL)) { return null; -- cgit