Skip to content

Commit

Permalink
Remove attempts to seemlessly upgrade the MultiMC instance. I have no
Browse files Browse the repository at this point in the history
hopes of getting it to ever work
  • Loading branch information
Kilobyte22 committed Feb 28, 2020
1 parent 10b468c commit c2202d8
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/main/scala/at/chaosfield/packupdate/PackUpdate.scala
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
package at.chaosfield.packupdate

import java.io.File
import java.net.URL

import at.chaosfield.packupdate.common.{FileManager, StdoutLog, Util}
import javax.swing.JOptionPane

/**
* This file exists purely for backwards compatibility. This class has the name of the old main class and will be launched by
* the legacy updater. It then instructs the user to update the packupdate
*/
object PackUpdate {
/*
def main(args: Array[String]): Unit = {
System.err.println("Your UpdaterUpdater is not compatible with this version of PackUpdate")
System.err.println("More information on upgrading UpdaterUpdater: https://github.com/XDjackieXD/PackUpdate/wiki/Migrating-from-2.x-to-3.0")
JOptionPane.showMessageDialog(
null,
"Oh dear, it seems like this version of PackUpdate is no longer compatible with your version of the UpdaterUpdater. " +
"Please check the instance log for more information on how to upgrade.")
"Sorry to interrupt, it seems like this version of PackUpdate is no longer compatible with your version of the UpdaterUpdater. \n" +
"Please check the instance log for more information on how to upgrade.\n" +
"Due to technical limitations on part of MultiMC we could not migrate you automatically. \n\n" +

"If you are playing on a server you might want to contact your server owner for an updated pack zip file"
)

System.exit(1)
}
*/

/*
def main(args: Array[String]): Unit = {
try {
run(args)
@@ -92,4 +92,5 @@ object PackUpdate {
throw new IllegalStateException("Could not identify the correct method to convert the old to the new command line")
}
}
*/
}

0 comments on commit c2202d8

Please sign in to comment.