File tree 1 file changed +3
-3
lines changed
jme3-examples/src/main/java/jme3test
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 32
32
33
33
package jme3test ;
34
34
35
- import com .jme3 .app .Application ;
35
+ import com .jme3 .app .LegacyApplication ;
36
36
import com .jme3 .app .SimpleApplication ;
37
37
import com .jme3 .system .JmeContext ;
38
38
import java .awt .*;
@@ -260,15 +260,15 @@ public void run(){
260
260
for (int i = 0 ; i < appClass .length ; i ++) {
261
261
Class <?> clazz = (Class )appClass [i ];
262
262
try {
263
- if (Application .class .isAssignableFrom (clazz )) {
263
+ if (LegacyApplication .class .isAssignableFrom (clazz )) {
264
264
Object app = clazz .newInstance ();
265
265
if (app instanceof SimpleApplication ) {
266
266
final Method settingMethod = clazz .getMethod ("setShowSettings" , boolean .class );
267
267
settingMethod .invoke (app , showSetting );
268
268
}
269
269
final Method mainMethod = clazz .getMethod ("start" );
270
270
mainMethod .invoke (app );
271
- Field contextField = Application .class .getDeclaredField ("context" );
271
+ Field contextField = LegacyApplication .class .getDeclaredField ("context" );
272
272
contextField .setAccessible (true );
273
273
JmeContext context = null ;
274
274
while (context == null ) {
You can’t perform that action at this time.
0 commit comments