mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-22 21:51:17 -09:00
Allow usage of ID instead of raw class
This commit is contained in:
parent
6c0cac16c7
commit
7a2fce5f6c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user