Skip to content

Commit

Permalink
fix getCorrective
Browse files Browse the repository at this point in the history
  • Loading branch information
ZXMushroom63 committed Oct 18, 2024
1 parent b7fad68 commit 9730e87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 121 deletions.
5 changes: 4 additions & 1 deletion postinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ globalThis.modapi_postinit = "(" + (() => {
return name;
}
ModAPI.util.wrap = function (outputValue, target, corrective, disableFunctions) {
target ||= {};
corrective ||= false;
disableFunctions ||= false;
const CorrectiveArray = patchProxyConfToCorrective(ModAPI.util.TeaVMArray_To_Recursive_BaseData_ProxyConf);
const CorrectiveRecursive = patchProxyConfToCorrective(ModAPI.util.TeaVM_to_Recursive_BaseData_ProxyConf);
if (outputValue && typeof outputValue === "object" && Array.isArray(outputValue.data) && typeof outputValue.type === "function") {
Expand All @@ -125,7 +128,7 @@ globalThis.modapi_postinit = "(" + (() => {
}
if (outputValue && typeof outputValue === "object" && !Array.isArray(outputValue)) {
if (corrective) {
return new Proxy(outputValue.data, CorrectiveRecursive);
return new Proxy(outputValue, CorrectiveRecursive);
}
return new Proxy(outputValue, ModAPI.util.TeaVM_to_Recursive_BaseData_ProxyConf);
}
Expand Down
23 changes: 0 additions & 23 deletions roadmap/index.html

This file was deleted.

66 changes: 0 additions & 66 deletions roadmap/roadmap.css

This file was deleted.

31 changes: 0 additions & 31 deletions roadmap/roadmap.js

This file was deleted.

0 comments on commit 9730e87

Please sign in to comment.