From bfc1d3a843998836f873e7a955b044c99192cbaf Mon Sep 17 00:00:00 2001 From: WiredSpast Date: Mon, 17 Apr 2023 17:47:15 +0200 Subject: [PATCH] Attempt unity fix --- .../main/java/gearth/services/unity_tools/UnityWebModifyer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java b/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java index f30ab2f..5305b90 100644 --- a/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java +++ b/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java @@ -114,7 +114,7 @@ public class UnityWebModifyer { contents = insertFrameworkCode(contents, 0, "js_code/unity_code.js"); - String exportSearch = "Module[\"asm\"]=exports;"; + String exportSearch = "Module[\"asm\"][\"Fj\"]).apply(null,arguments)};"; int exportIndex = contents.indexOf(exportSearch) + exportSearch.length(); contents = insertFrameworkCode(contents, exportIndex, "js_code/unity_exports.js");