Skip to content

Commit

Permalink
fix: offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tratan authored and 1zun4 committed Nov 24, 2024
1 parent 14d2db7 commit ff24d88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ yarn_mappings=1.21.1+build.3
loader_version=0.15.10

archives_base_name=mcef
mod_version=1.2.0-1.21.1
mod_version=1.2.1-1.21.1
maven_group=CCBlueX

loom_version=1.8-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private boolean compareChecksum(File checksumFile, File archiveFile) {
}
}

private void downloadFile(String urlString, File outputFile, MCEFProgressTracker percentCompleteConsumer) {
private void downloadFile(String urlString, File outputFile, MCEFProgressTracker percentCompleteConsumer) throws IOException {
try {
MCEF.INSTANCE.getLogger().debug("Downloading '{}' to '{}'", urlString, outputFile.getCanonicalPath());
} catch (IOException e) {
Expand Down Expand Up @@ -253,12 +253,12 @@ private void downloadFile(String urlString, File outputFile, MCEFProgressTracker
percentCompleteConsumer.setProgress(percentComplete);
}
} catch (IOException e) {
throw new RuntimeException("Error writing to file from input stream", e);
throw new IOException("Error writing to file from input stream", e);
}
} catch (MalformedURLException e) {
throw new RuntimeException("Invalid URL format for " + urlString, e);
} catch (IOException e) {
throw new RuntimeException("Error connecting to " + urlString, e);
throw new IOException("Error connecting to " + urlString, e);
}
}

Expand Down

0 comments on commit ff24d88

Please sign in to comment.