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