aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartimavocado <39881008+martimavocado@users.noreply.github.com>2024-08-17 08:28:45 +0100
committerGitHub <noreply@github.com>2024-08-17 09:28:45 +0200
commite77eb1faf0fe6d0a80137ddd5f8282a59cc45726 (patch)
treefdb5d14b678c198ab9b7febc023168bacac800f9
parenta3e49e7771a4634a3b1a1ac605c5a6339b3c96f4 (diff)
downloadskyhanni-e77eb1faf0fe6d0a80137ddd5f8282a59cc45726.tar.gz
skyhanni-e77eb1faf0fe6d0a80137ddd5f8282a59cc45726.tar.bz2
skyhanni-e77eb1faf0fe6d0a80137ddd5f8282a59cc45726.zip
Improvement: Adds "Open Mods Folder" button to NEU error on startup (#2362)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt
index 0a182d531..ef2bf5591 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt
@@ -1,9 +1,11 @@
package at.hannibal2.skyhanni.utils
+import net.minecraft.client.Minecraft
import net.minecraftforge.fml.common.FMLCommonHandler
import java.awt.Desktop
import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
+import java.io.File
import java.net.URI
import javax.swing.JButton
import javax.swing.JFrame
@@ -42,6 +44,7 @@ object NEUVersionCheck {
Pair("Join NEU Discord", "https://discord.gg/moulberry"),
Pair("Download NEU from GitHub", "https://github.com/NotEnoughUpdates/NotEnoughUpdates/releases/latest"),
Pair("Download NEU from Modrinth", "https://modrinth.com/mod/notenoughupdates/version/latest"),
+ Pair("Open Mods Folder", File(Minecraft.getMinecraft().mcDataDir, "mods").toURI().toString()),
)
closeMinecraft()
}