aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuna <luna@alexia.lol>2024-05-24 14:40:10 +0200
committerGitHub <noreply@github.com>2024-05-24 14:40:10 +0200
commit10c51c80f5546ae67e45bf6367dcc7e2622f6cdd (patch)
tree96ffbf62694b536becb07921dbb092e9285e44ff /src
parentfe0449b9b8161135874ac99c1685233349f06f0d (diff)
downloadskyhanni-10c51c80f5546ae67e45bf6367dcc7e2622f6cdd.tar.gz
skyhanni-10c51c80f5546ae67e45bf6367dcc7e2622f6cdd.tar.bz2
skyhanni-10c51c80f5546ae67e45bf6367dcc7e2622f6cdd.zip
Improvement: Better NEU missing/outdated warning (#1847)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt
index 01331bbdb..0a182d531 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt
@@ -17,13 +17,7 @@ object NEUVersionCheck {
try {
Class.forName("io.github.moulberry.notenoughupdates.NotEnoughUpdates")
} catch (e: Throwable) {
- neuWarning(
- "NotEnoughUpdates is missing!\n" +
- "SkyHanni requires the latest version of NotEnoughUpdates to work.\n" +
- "You currently need NEU version 2.2.0 or later.\n" +
- "NEU 2.1 is NOT the latest version.\n" +
- "Use these links to download the latest version:"
- )
+ neuWarning("missing")
return
}
@@ -35,21 +29,19 @@ object NEUVersionCheck {
}
} catch (_: Throwable) {
}
- neuWarning(
- "NotEnoughUpdates is outdated!\n" +
- "You currently need NEU version 2.2.0 or later.\n" +
- "NEU 2.1 is NOT the latest version.\n" +
- "Use these links to download the latest version:"
- )
+ neuWarning("outdated")
}
- private fun neuWarning(text: String) {
+ private fun neuWarning(what: String) {
openPopupWindow(
- text,
+ "NotEnoughUpdates is $what!\n" +
+ "SkyHanni requires the latest version of NotEnoughUpdates to work.\n" +
+ "Use these links to download the latest version:",
Pair("Join SkyHanni Discord", "https://discord.com/invite/skyhanni-997079228510117908"),
Pair("Open SkyHanni GitHub", "https://github.com/hannibal002/SkyHanni"),
Pair("Join NEU Discord", "https://discord.gg/moulberry"),
- Pair("Download NEU 2.2.0", "https://github.com/NotEnoughUpdates/NotEnoughUpdates/releases/tag/2.2.0"),
+ Pair("Download NEU from GitHub", "https://github.com/NotEnoughUpdates/NotEnoughUpdates/releases/latest"),
+ Pair("Download NEU from Modrinth", "https://modrinth.com/mod/notenoughupdates/version/latest"),
)
closeMinecraft()
}