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; }