From 64745a86f7c63cef16c127425ee57a708832efb9 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Thu, 30 Jan 2025 17:46:56 +0800 Subject: [PATCH] fix corrective proxy setters again --- postinit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postinit.js b/postinit.js index da9d73c..1c9ac14 100644 --- a/postinit.js +++ b/postinit.js @@ -541,7 +541,7 @@ globalThis.modapi_postinit = "(" + (() => { var corrective = !!this._corrective; var outProp = "$" + prop; if (corrective) { - outProp = ModAPI.util.getNearestProperty(target, outProp); + outProp = ModAPI.util.getNearestProperty(object, outProp); } object[outProp] = value; return true;