diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2024-09-23 02:51:37 -0230 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 07:21:37 +0200 |
commit | 8f7b79a0b4953bb64f342ccc21d962c8aacbc169 (patch) | |
tree | cd26dc00f4009b990e30b5f3aaef125fb5663d06 /src | |
parent | 4b34113c86f824000bbe9eebb5cc3fcdfe56b9ba (diff) | |
download | skyhanni-8f7b79a0b4953bb64f342ccc21d962c8aacbc169.tar.gz skyhanni-8f7b79a0b4953bb64f342ccc21d962c8aacbc169.tar.bz2 skyhanni-8f7b79a0b4953bb64f342ccc21d962c8aacbc169.zip |
Backend: Add blossom and make source checker show version again (#2558)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index 35f083580..45d02f544 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -42,7 +42,7 @@ import org.apache.logging.log4j.Logger clientSideOnly = true, useMetadata = true, guiFactory = "at.hannibal2.skyhanni.config.ConfigGuiForgeInterop", - version = "0.27.Beta.11", + version = "@MOD_VERSION@", ) class SkyHanniMod { diff --git a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java index 5672ee87c..63a92849b 100644 --- a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java +++ b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java @@ -14,6 +14,7 @@ import java.util.concurrent.atomic.AtomicBoolean; public class DownloadSourceChecker { + private static final String MOD_VERSION = "@MOD_VERSION@"; private static final String GITHUB_REPO = "511310721"; private static final String GITHUB_REPO_TEXT = "repo_id=" + GITHUB_REPO; private static final String MODRINTH_URL = "/data/byNkmv5G/"; @@ -95,12 +96,10 @@ public class DownloadSourceChecker { } )); - // TODO FIX THIS CAUSING CLASS LOADING AND CRASHING - //String version = SkyHanniMod.Companion.getVersion(); JOptionPane.showOptionDialog( frame, String.format(String.join("\n", SECURITY_POPUP), uriToSimpleString(host)), - "SkyHanni Security Error", + "SkyHanni " + MOD_VERSION + " Security Error", JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE, null, |