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'
4
4
sourceCompatibility = ' 1.6'
5
5
targetCompatibility = ' 1.6'
6
6
7
- version = ' 0.3 .0'
7
+ version = ' 0.4 .0'
8
8
9
9
repositories {
10
10
mavenCentral()
36
36
+ " minecraft_server.1.10.2.jar"
37
37
+ " minecraft_server.1.11.jar"
38
38
+ " minecraft_server.1.11.2.jar"
39
+ + " minecraft_server.1.12.jar"
39
40
)
40
41
}
41
42
}
Original file line number Diff line number Diff line change @@ -43,15 +43,17 @@ public static void main(String[] args) {
43
43
try {
44
44
Class .forName ("net.minecraft.launchwrapper.Launch" );
45
45
logger .info ("Found launch wrapper, continuing" );
46
- findAndLoadJars ();
47
- load (args );
48
46
} catch (ClassNotFoundException e1 ) {
49
47
System .err .println ("Failed to load Launch class" );
48
+ e1 .printStackTrace ();
50
49
System .exit (1 );
51
50
} catch (NoClassDefFoundError e2 ) {
52
51
System .err .println ("Failed to load Launch class" );
52
+ e2 .printStackTrace ();
53
53
System .exit (1 );
54
54
}
55
+ findAndLoadJars ();
56
+ load (args );
55
57
}
56
58
}
57
59
@@ -96,7 +98,7 @@ public boolean accept(File pathname) {
96
98
}
97
99
98
100
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" ) ;
100
102
}
101
103
102
104
private static File findJar (File directory , String jarName , FileFilter filter ) {
You can’t perform that action at this time.
0 commit comments