NoClassDefFoundError: com/mojang/authlib/exceptions/UserBannedException
hey!, so i got this issue when im opening my build with mc launcher:
---- Minecraft Crash Report ---- // Hi. I'm Minecraft, and I'm a crashaholic.
Time: 2023-05-25 16:00:24 Description: Initializing game
java.lang.NoSuchMethodError: 'java.util.Map com.mojang.authlib.minecraft.UserApiService$UserProperties.bannedScopes()' at net.minecraft.client.Minecraft.multiplayerBan(Minecraft.java:2079) at net.minecraft.client.Minecraft.allowsMultiplayer(Minecraft.java:2066) at net.minecraft.client.Minecraft.
(Minecraft.java:417) at net.minecraft.client.main.Main.run(Main.java:176) at net.minecraft.client.main.Main.main(Main.java:51) A detailed walkthrough of the error, its code path and all known details is as follows:
-- Head -- Thread: Render thread Stacktrace: at net.minecraft.client.Minecraft.multiplayerBan(Minecraft.java:2079) at net.minecraft.client.Minecraft.allowsMultiplayer(Minecraft.java:2066) at net.minecraft.client.Minecraft.
(Minecraft.java:417)
// at net.minecraft.client.Minecraft.multiplayerBan(Minecraft.java:2079):
@Nullable
public BanDetails multiplayerBan() {
return this.userApiService.properties().bannedScopes().get("MULTIPLAYER"); // here is the error
}
// at net.minecraft.client.Minecraft.allowsMultiplayer(Minecraft.java:2066):
public boolean allowsMultiplayer() {
return this.allowsMultiplayer && this.userApiService.properties().flag(UserFlag.SERVERS_ALLOWED) && this.multiplayerBan() == null; // here is the error
}
// at net.minecraft.client.Minecraft.<init>(Minecraft.java:417):
if (this.allowsMultiplayer() && p_91084_.server.hostname != null) { // here is the error
s = p_91084_.server.hostname;
i = p_91084_.server.port;
} else {
s = null;
i = 0;
}
// at net.minecraft.client.main.Main.run(Main.java:176)
...try {
Thread.currentThread().setName("Render thread");
RenderSystem.initRenderThread();
RenderSystem.beginInitialization();
minecraft = new Minecraft(gameconfig); // here is the error
RenderSystem.finishInitialization();
} catch (SilentInitException silentinitexception) {
LOGGER.warn("Failed to create window: ", (Throwable)silentinitexception);
return;
} catch ...
// at net.minecraft.client.main.Main.main(Main.java:51)
@DontObfuscate
public static void main(String[] p_129642_) {
run(p_129642_, true); // here is the error
}
any one knows how to fix it? am i dumb and i forgot something?