mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
array fix 2
This commit is contained in:
parent
f4eae3baf1
commit
b5eb761645
@ -311,12 +311,15 @@ globalThis.modapi_postinit = "(" + (() => {
|
||||
var reloadDeprecationWarnings = 0;
|
||||
const TeaVMArray_To_Recursive_BaseData_ProxyConf = {
|
||||
get(target, prop, receiver) {
|
||||
var outputValue = Reflect.get(target, prop, receiver);
|
||||
if (outputValue && typeof outputValue === "object" && !Array.isArray(outputValue)) {
|
||||
return ModAPI.util.wrap(outputValue, target, this._corrective);
|
||||
}
|
||||
if (prop === "getRef") {
|
||||
return function () {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
var outputValue = Reflect.get(target, prop, receiver);
|
||||
var wrapped = ModAPI.util.wrap(outputValue, target, this._corrective);
|
||||
if (wrapped) {
|
||||
return wrapped;
|
||||
|
Loading…
x
Reference in New Issue
Block a user