mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
fix corrective proxy setters
This commit is contained in:
parent
393f6fd2e7
commit
9f9d91f6a3
@ -538,7 +538,11 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
return outputValue;
|
return outputValue;
|
||||||
},
|
},
|
||||||
set(object, prop, value) {
|
set(object, prop, value) {
|
||||||
|
var corrective = !!this._corrective;
|
||||||
var outProp = "$" + prop;
|
var outProp = "$" + prop;
|
||||||
|
if (corrective) {
|
||||||
|
outProp = ModAPI.util.getNearestProperty(target, outProp);
|
||||||
|
}
|
||||||
object[outProp] = value;
|
object[outProp] = value;
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user