From 4d58f4556d6fd624574596f05ad38c185740cf49 Mon Sep 17 00:00:00 2001 From: PeytonPlayz595 <106421860+PeytonPlayz595@users.noreply.github.com> Date: Wed, 12 Jul 2023 08:04:01 -0400 Subject: [PATCH] Replaced minecraftOpts with classicConfig --- src/teavm/java/net/lax1dude/eaglercraft/Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/teavm/java/net/lax1dude/eaglercraft/Client.java b/src/teavm/java/net/lax1dude/eaglercraft/Client.java index 493f80e..3076f10 100644 --- a/src/teavm/java/net/lax1dude/eaglercraft/Client.java +++ b/src/teavm/java/net/lax1dude/eaglercraft/Client.java @@ -57,7 +57,7 @@ public class Client { instance.run(); } - @JSBody(params = { }, script = "return window.minecraftOpts;") + @JSBody(params = { }, script = "return window.classicConfig;") public static native String[] getOpts(); @JSBody(params = { }, script = "window.minecraftError = null; window.onerror = function(message, file, line, column, errorObj) { if(errorObj) { window.minecraftError = errorObj; window.minecraftErrorL = \"\"+line+\":\"+column; javaMethods.get(\"net.lax1dude.eaglercraft.Client.handleNativeError()V\").invoke(); } else { alert(\"a native browser exception was thrown but your browser does not support fith argument in onerror\"); } };")