Skip to content

Commit

Permalink
Disable online resource fetching
Browse files Browse the repository at this point in the history
- Fixes Crowdin CDN error
- Online resource fetching disabled as resources are no longer updated
  • Loading branch information
ILikePlayingGames committed Dec 9, 2023
1 parent e9fd003 commit dd28ccd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Expand Up @@ -141,7 +141,7 @@ protected void actionPerformed(GuiButton abstractButton) {
if (abstractButton instanceof ButtonLanguage) {
Language language = ((ButtonLanguage) abstractButton).getLanguage();
main.getConfigValues().setLanguage(language);
DataUtils.loadLocalizedStrings(true);
DataUtils.loadLocalizedStrings(false);
main.setKeyBindingDescriptions();
returnToGui();
} else if (abstractButton instanceof ButtonSwitchTab) {
Expand Down
Expand Up @@ -178,7 +178,7 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) {
protected void actionPerformed(GuiButton abstractButton) {
if (abstractButton instanceof ButtonLanguage) {
Language language = ((ButtonLanguage) abstractButton).getLanguage();
DataUtils.loadLocalizedStrings(language, true);
DataUtils.loadLocalizedStrings(language, false);
main.setKeyBindingDescriptions();
returnToGui();
} else if (abstractButton instanceof ButtonSwitchTab) {
Expand Down
Expand Up @@ -121,7 +121,8 @@ public class DataUtils {
}
connectionManager.setMaxTotal(5);
connectionManager.setDefaultMaxPerRoute(5);
registerRemoteRequests();
// Disable online fetching due to EOL
// registerRemoteRequests();
}

//TODO: Migrate all data file loading to this class
Expand Down Expand Up @@ -406,9 +407,9 @@ static String getFileNameFromUrlString(String url) {

private static void registerRemoteRequests() {
remoteRequests.add(new OnlineDataRequest());
if (SkyblockAddons.getInstance().getConfigValues().getLanguage() != Language.ENGLISH) {
/* if (SkyblockAddons.getInstance().getConfigValues().getLanguage() != Language.ENGLISH) {
remoteRequests.add(new LocalizedStringsRequest(SkyblockAddons.getInstance().getConfigValues().getLanguage()));
}
}*/
remoteRequests.add(new EnchantedItemListsRequest());
remoteRequests.add(new ContainersRequest());
remoteRequests.add(new CompactorItemsRequest());
Expand Down

0 comments on commit dd28ccd

Please sign in to comment.