v0.7.5: replaced all uses of java reflection with LibGDX reflection
This commit is contained in:
@@ -23,6 +23,7 @@ package com.watabou.noosa;
|
||||
|
||||
import com.watabou.noosa.particles.Emitter;
|
||||
import com.watabou.utils.Random;
|
||||
import com.watabou.utils.Reflection;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -190,11 +191,11 @@ public class Group extends Gizmo {
|
||||
|
||||
} else {
|
||||
|
||||
try {
|
||||
return add( c.newInstance() );
|
||||
} catch (Exception e) {
|
||||
Game.reportException(e);
|
||||
g = Reflection.newInstance(c);
|
||||
if (g != null) {
|
||||
return add(g);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user