File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
jme3-examples/src/main/java/jme3test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3232
3333package jme3test ;
3434
35- import com .jme3 .app .Application ;
35+ import com .jme3 .app .LegacyApplication ;
3636import com .jme3 .app .SimpleApplication ;
3737import com .jme3 .system .JmeContext ;
3838import java .awt .*;
@@ -260,15 +260,15 @@ public void run(){
260260 for (int i = 0 ; i < appClass .length ; i ++) {
261261 Class <?> clazz = (Class )appClass [i ];
262262 try {
263- if (Application .class .isAssignableFrom (clazz )) {
263+ if (LegacyApplication .class .isAssignableFrom (clazz )) {
264264 Object app = clazz .newInstance ();
265265 if (app instanceof SimpleApplication ) {
266266 final Method settingMethod = clazz .getMethod ("setShowSettings" , boolean .class );
267267 settingMethod .invoke (app , showSetting );
268268 }
269269 final Method mainMethod = clazz .getMethod ("start" );
270270 mainMethod .invoke (app );
271- Field contextField = Application .class .getDeclaredField ("context" );
271+ Field contextField = LegacyApplication .class .getDeclaredField ("context" );
272272 contextField .setAccessible (true );
273273 JmeContext context = null ;
274274 while (context == null ) {
You can’t perform that action at this time.
0 commit comments