9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2026-01-04 15:41:30 +00:00
This commit is contained in:
Julian Krings
2024-10-09 13:01:31 +02:00
parent 57649a9ec5
commit 76365e7875

View File

@@ -28,7 +28,7 @@ public class Reflect {
c.setAccessible(true);
try {
return (T) c.newInstance(initArgs);
return (T) c.newInstance(initArgs.stream().map(Pair::getB).toArray());
} catch (InstantiationException | IllegalAccessException e) {
throw new InvocationTargetException(e);
}