From e77eb1faf0fe6d0a80137ddd5f8282a59cc45726 Mon Sep 17 00:00:00 2001 From: martimavocado <39881008+martimavocado@users.noreply.github.com> Date: Sat, 17 Aug 2024 08:28:45 +0100 Subject: Improvement: Adds "Open Mods Folder" button to NEU error on startup (#2362) --- src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt | 3 +++ 1 file changed, 3 insertions(+) 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() } -- cgit