Skip to content

Commit

Permalink
Update I18nUpdateMod.java
Browse files Browse the repository at this point in the history
  • Loading branch information
baka-gourd authored May 27, 2021
1 parent b4bef32 commit 51691f5
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ public I18nUpdateMod() {
e.printStackTrace();
return;
}
setResourcesRepository();
} else {
try {
FileUtils.copyURLToFile(new URL(LINK), LANGUAGE_PACK.toFile());
Expand All @@ -118,13 +117,6 @@ public I18nUpdateMod() {
e.printStackTrace();
return;
}
try {
setResourcesRepository();
//Minecraft.getInstance().getResourcePackRepository().addPackFinder(new LanguagePackFinder());
} catch (Exception e) {
e.printStackTrace();
return;
}
}

if(!Files.exists(LOCAL_LANGUAGE_PACK)){
Expand All @@ -143,6 +135,9 @@ public I18nUpdateMod() {
LOGGER.error("Error when copy file.");
return;
}
}

if(Files.exists(LOCAL_LANGUAGE_PACK)){
try {
setResourcesRepository();
//Minecraft.getInstance().getResourcePackRepository().addPackFinder(new LanguagePackFinder());
Expand Down

0 comments on commit 51691f5

Please sign in to comment.