From bc5f50bf9e3f5279502d81ea93c45718c3694c24 Mon Sep 17 00:00:00 2001 From: LatvianModder Date: Sat, 9 Dec 2023 19:12:19 +0200 Subject: [PATCH] Attempt at bandaid fixing concurrency issues III --- common/src/main/java/dev/latvian/mods/rhino/ScriptRuntime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/dev/latvian/mods/rhino/ScriptRuntime.java b/common/src/main/java/dev/latvian/mods/rhino/ScriptRuntime.java index 568c5666..1835d5f9 100644 --- a/common/src/main/java/dev/latvian/mods/rhino/ScriptRuntime.java +++ b/common/src/main/java/dev/latvian/mods/rhino/ScriptRuntime.java @@ -233,7 +233,7 @@ public static ScriptableObject initSafeStandardObjects(Context cx, ScriptableObj public static ScriptableObject initStandardObjects(Context cx, ScriptableObject scope, boolean sealed) { ScriptableObject s = initSafeStandardObjects(cx, scope, sealed); - JavaAdapter.init(cx, scope, sealed); + JavaAdapter.init(cx, s, sealed); return s; }