Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: Adds "Open Mods Folder" button to NEU error on startup #2362

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/at/hannibal2/skyhanni/utils/NEUVersionCheck.kt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()
}
Expand Down
Loading