Skip to content

Commit

Permalink
Version 0.3
Browse files Browse the repository at this point in the history
*Changed Updater -> Downloader

*Updated README.md

*Accepted #1
  • Loading branch information
I-No-oNe committed Aug 18, 2024
1 parent 188a90d commit ce1736c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ClickCrystals Updater
# ClickCrystals Downloader
#### (No more troubles with downloading CC 😉)
--------------------
```yml
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ yarn_mappings=1.21+build.9
loader_version=0.15.11

# Mod Properties
mod_version=0.2-fabric
mod_version=0.3-fabric
maven_group=net.i_no_am.clickcrystals
archives_base_name=ClickCrystals-Updater
archives_base_name=ClickCrystals-Downloader

# Dependencies
fabric_version=0.101.2+1.21
8 changes: 4 additions & 4 deletions src/main/java/net/i_no_am/clickcrystals/ModDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ public static Info requestInfo() {
is.close();

Gson gson = new Gson();
Info info = gson.fromJson(json, Info.class);
LOGGER.info("Requested info: {}", gson.toJson(info));
return info;
return gson.fromJson(json, Info.class);
}
catch (Exception ex) {
LOGGER.error("An unexpected error occurred while trying to download mod information from {}: {}", INFO_LINK, ex);
Expand Down Expand Up @@ -89,6 +87,8 @@ public static void downloadAsset(Info info) {
is.close();

LOGGER.info("ClickCrystals Installation Completed Successfully!");
LOGGER.info("Restart Your Game, ClickCrystals Will Work In Your Next Game Launch");
System.exit(-1);
}
catch (Exception ex) {
LOGGER.error("An unexpected error occurred while trying to install ClickCrystals: {}", ex.getMessage());
Expand Down Expand Up @@ -119,4 +119,4 @@ public String getFile() {
return "%s/releases/download/v%s/%s".formatted(REPO, latest, getAsset());
}
}
}
}
10 changes: 5 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"schemaVersion": 1,
"id": "clickcrystals-updater",
"id": "clickcrystals-downloader",
"version": "${version}",
"name": "ClickCrystals Auto Update",
"description": "Mod for updating your ClickCrystals",
"name": "ClickCrystals Downloader",
"description": "Mod for updating and downloading your ClickCrystals",
"authors": [
"I-No-oNe"
],
"contact": {
"homepage": "https://github.com/clickcrystals-development",
"sources": "https://github.com/clickcrystals-development/ClickCrystals-Auto-Updater"
"sources": "https://github.com/clickcrystals-development/ClickCrystals-Downloader"
},
"license": "MIT",
"icon": "assets/clickcrystals-updater/icon.png",
"icon": "assets/clickcrystals-downloader/icon.png",
"environment": "*",
"entrypoints": {
"client": [
Expand Down

0 comments on commit ce1736c

Please sign in to comment.