mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-24 21:51:24 +00:00
woops
This commit is contained in:
@@ -28,7 +28,7 @@ public class Reflect {
|
|||||||
|
|
||||||
c.setAccessible(true);
|
c.setAccessible(true);
|
||||||
try {
|
try {
|
||||||
return (T) c.newInstance(initArgs);
|
return (T) c.newInstance(initArgs.stream().map(Pair::getB).toArray());
|
||||||
} catch (InstantiationException | IllegalAccessException e) {
|
} catch (InstantiationException | IllegalAccessException e) {
|
||||||
throw new InvocationTargetException(e);
|
throw new InvocationTargetException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user