From ba1a63bb60e6d4d48d3290e9c21108b972aaae53 Mon Sep 17 00:00:00 2001 From: ILikePlayingGames <22475143+ilikeplayinggames@users.noreply.github.com> Date: Sat, 12 Mar 2022 01:36:46 -0500 Subject: [PATCH] Fix users in China being unable to use the mod - China seems to block https://raw.githubusercontent.com/ so the localized string download fails with a NXDOMAIN error. - This fix makes language file downloads non-essential for the time being so sba can still launch. --- .../utils/data/requests/LocalizedStringsRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/codes/biscuit/skyblockaddons/utils/data/requests/LocalizedStringsRequest.java b/src/main/java/codes/biscuit/skyblockaddons/utils/data/requests/LocalizedStringsRequest.java index 41580dcb96..7b34b0aa49 100644 --- a/src/main/java/codes/biscuit/skyblockaddons/utils/data/requests/LocalizedStringsRequest.java +++ b/src/main/java/codes/biscuit/skyblockaddons/utils/data/requests/LocalizedStringsRequest.java @@ -21,7 +21,7 @@ public LocalizedStringsRequest(@NonNull Language language) { "https://raw.githubusercontent.com/BiscuitDevelopment/SkyblockAddons/development/src/main/resources/lang/%s.json", language.getPath()), new JSONResponseHandler<>(JsonObject.class), - true, true); + false, true); LANGUAGE = language; }