Skip to content

Commit

Permalink
need to pass the phase along after all ?
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkyAI committed Jul 31, 2021
1 parent 967989e commit 3265af8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions multimc/installer/src/main/kotlin/voodoo/multimc/Installer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ object Installer {
if (newJar != null) {
val java = Paths.get(System.getProperty("java.home"), "bin", "java").toFile().path
val workingDir = File(System.getProperty("user.dir"))
val debugArgs: Array<String>

debugArgs = if (System.getProperty(DEBUG_PROPERTY_NAME) != null) {
val debugArgs: Array<String> = if (System.getProperty(DEBUG_PROPERTY_NAME) != null) {
arrayOf("-D$DEBUG_PROPERTY_NAME=$DEBUG_PROPERTY_VALUE_ON")
} else {
arrayOf()
Expand All @@ -228,7 +227,7 @@ object Installer {
"--mc",
minecraftDir.path,
"--phase",
Phase.PRE.name
phase.name
)

logger.info { "Executing ${args.joinToString()}" }
Expand Down

0 comments on commit 3265af8

Please sign in to comment.