File tree Expand file tree Collapse file tree 4 files changed +18
-10
lines changed
src/main/java/org/betacraft Expand file tree Collapse file tree 4 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -160,11 +160,15 @@ public void stop() {
160
160
runningField .set (run , false );
161
161
}
162
162
}
163
- Method real12a = clazz .getDeclaredMethod ("a" , null );
164
- if (real12a == null ) {
163
+
164
+ Method real12a ;
165
+ try {
166
+ real12a = clazz .getDeclaredMethod ("a" );
167
+ } catch (NoSuchMethodException noSuchMethodException ) {
165
168
// 12a-dev
166
- real12a = clazz .getDeclaredMethod ("stop" , null );
169
+ real12a = clazz .getDeclaredMethod ("stop" );
167
170
}
171
+
168
172
real12a .invoke (run );
169
173
}
170
174
}
@@ -188,11 +192,15 @@ public void destroy() {
188
192
if (name .contains ("mojang" )) {
189
193
final Class <?> clazz = classLoader .loadClass (name );
190
194
mcField .setAccessible (true );
191
- Method real12a = clazz .getDeclaredMethod ("a" , null );
192
- if (real12a == null ) {
195
+
196
+ Method real12a ;
197
+ try {
198
+ real12a = clazz .getDeclaredMethod ("a" );
199
+ } catch (NoSuchMethodException noSuchMethodException ) {
193
200
// 12a-dev
194
- real12a = clazz .getDeclaredMethod ("destroy" , null );
201
+ real12a = clazz .getDeclaredMethod ("destroy" );
195
202
}
203
+
196
204
real12a .invoke (run );
197
205
}
198
206
}
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ public void stop() {
162
162
runningField .set (run , false );
163
163
}
164
164
}
165
- clazz .getDeclaredMethod ("b" , null ).invoke (run );
165
+ clazz .getDeclaredMethod ("b" ).invoke (run );
166
166
}
167
167
}
168
168
} catch (Exception ex ) {
@@ -185,7 +185,7 @@ public void destroy() {
185
185
if (name .contains ("mojang" )) {
186
186
final Class <?> clazz = classLoader .loadClass (name );
187
187
mcField .setAccessible (true );
188
- clazz .getDeclaredMethod ("a" , null ).invoke (run );
188
+ clazz .getDeclaredMethod ("a" ).invoke (run );
189
189
}
190
190
}
191
191
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class BC {
12
12
public static PropertyFile SETTINGS ;
13
13
14
14
// TODO better check this before release
15
- public static boolean prerelease = true ;
15
+ public static boolean prerelease = false ;
16
16
public static boolean nightly = false ;
17
17
18
18
public static boolean portable = false ;
Original file line number Diff line number Diff line change 47
47
48
48
/** Main class */
49
49
public class Launcher {
50
- public static String VERSION = "1.09_17-rc3 " ; // TODO Always update this
50
+ public static String VERSION = "1.09_17" ; // TODO Always update this
51
51
52
52
public static Instance currentInstance ;
53
53
public static boolean forceUpdate = false ;
You can’t perform that action at this time.
0 commit comments