diff --git a/core/postinit.js b/core/postinit.js index 05bc5aa..2673d2d 100644 --- a/core/postinit.js +++ b/core/postinit.js @@ -285,6 +285,9 @@ const modapi_postinit = "(" + (() => { return null; } ModAPI.array.object = function (jclass, size) { + if (typeof jclass = "string") { + jclass = ModAPI.reflect.getClassById(jclass).class; + } if (Array.isArray(size)) { return ModAPI.hooks._teavm.$rt_createArrayFromData(jclass, size); }