mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-09-28 21:37:25 +02:00
bccbfb39c9
Async subdata shenanigans made rogue SubServer detection a little inacurrate. Specifically in regards to the last commit. This is the fix to that
31 lines
907 B
Java
31 lines
907 B
Java
package net.ME1312.SubServers.Host;
|
|
|
|
/**
|
|
* SubServers/GalaxiEngine Launch Class
|
|
*/
|
|
public final class Launch {
|
|
|
|
/**
|
|
* Launch SubServers/GalaxiEngine
|
|
*
|
|
* @param args Launch Arguments
|
|
* @throws Exception
|
|
*/
|
|
public static void main(String[] args) throws Exception {
|
|
System.setProperty("apple.laf.useScreenMenuBar", "true");
|
|
boolean exists = false;
|
|
try {
|
|
exists = Class.forName("net.ME1312.Galaxi.Engine.GalaxiEngine") != null;
|
|
} catch (Throwable e) {}
|
|
|
|
if (!exists) {
|
|
System.out.println(">> GalaxiEngine.jar Doesn't Exist");
|
|
System.out.println(">> ");
|
|
System.out.println(">> Please download a build from:");
|
|
System.out.println(">> https://github.com/ME1312/GalaxiEngine/releases");
|
|
System.exit(1);
|
|
} else {
|
|
ExHost.main(args);
|
|
}
|
|
}
|
|
} |