File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/main/java/com/simon816/sponge/bootstrap Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apply plugin: 'eclipse'
44sourceCompatibility = ' 1.6'
55targetCompatibility = ' 1.6'
66
7- version = ' 0.3 .0'
7+ version = ' 0.4 .0'
88
99repositories {
1010 mavenCentral()
3636 + " minecraft_server.1.10.2.jar"
3737 + " minecraft_server.1.11.jar"
3838 + " minecraft_server.1.11.2.jar"
39+ + " minecraft_server.1.12.jar"
3940 )
4041 }
4142}
Original file line number Diff line number Diff line change @@ -43,15 +43,17 @@ public static void main(String[] args) {
4343 try {
4444 Class .forName ("net.minecraft.launchwrapper.Launch" );
4545 logger .info ("Found launch wrapper, continuing" );
46- findAndLoadJars ();
47- load (args );
4846 } catch (ClassNotFoundException e1 ) {
4947 System .err .println ("Failed to load Launch class" );
48+ e1 .printStackTrace ();
5049 System .exit (1 );
5150 } catch (NoClassDefFoundError e2 ) {
5251 System .err .println ("Failed to load Launch class" );
52+ e2 .printStackTrace ();
5353 System .exit (1 );
5454 }
55+ findAndLoadJars ();
56+ load (args );
5557 }
5658 }
5759
@@ -96,7 +98,7 @@ public boolean accept(File pathname) {
9698 }
9799
98100 static boolean supportedVersion (String fn ) {
99- return fn .contains ("1.8.9" ) || fn .contains ("1.10.2" ) || fn .contains ("1.11" );
101+ return fn .contains ("1.8.9" ) || fn .contains ("1.10.2" ) || fn .contains ("1.11" ) || fn . contains ( "1.12" ) ;
100102 }
101103
102104 private static File findJar (File directory , String jarName , FileFilter filter ) {
You can’t perform that action at this time.
0 commit comments