From 14d2db76c9180bb0928b28ebbce401e6b346c7b4 Mon Sep 17 00:00:00 2001 From: Tratan <106786021+tratan@users.noreply.github.com> Date: Sat, 23 Nov 2024 15:39:30 -0500 Subject: [PATCH 1/2] fix: correct location in maven local --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 7bd3ae19..7b5a1581 100644 --- a/build.gradle +++ b/build.gradle @@ -143,3 +143,5 @@ publishing { } } } + +group = 'com.github.CCBlueX' \ No newline at end of file From ff24d885d3756609c1106cecdb202f8729b663e9 Mon Sep 17 00:00:00 2001 From: Tratan <106786021+tratan@users.noreply.github.com> Date: Sat, 23 Nov 2024 15:40:29 -0500 Subject: [PATCH 2/2] fix: offline mode --- gradle.properties | 2 +- .../net/ccbluex/liquidbounce/mcef/MCEFResourceManager.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 609803da..a579e208 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/net/ccbluex/liquidbounce/mcef/MCEFResourceManager.java b/src/main/java/net/ccbluex/liquidbounce/mcef/MCEFResourceManager.java index 50dc8b9e..5e3a4b8a 100644 --- a/src/main/java/net/ccbluex/liquidbounce/mcef/MCEFResourceManager.java +++ b/src/main/java/net/ccbluex/liquidbounce/mcef/MCEFResourceManager.java @@ -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) { @@ -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); } }