Replaced minecraftOpts with classicConfig

This commit is contained in:
PeytonPlayz595 2023-07-12 08:04:01 -04:00
parent c167fce467
commit 4d58f4556d

View File

@ -57,7 +57,7 @@ public class Client {
instance.run(); instance.run();
} }
@JSBody(params = { }, script = "return window.minecraftOpts;") @JSBody(params = { }, script = "return window.classicConfig;")
public static native String[] getOpts(); 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\"); } };") @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\"); } };")