From 96d7eb824eff4362ada5803720fd3aa8fcd8c565 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Thu, 5 Jan 2023 22:42:15 +0100 Subject: [PATCH] Fixed java 9 or higher crash --- build.gradle | 16 +++++++++++----- gradle.properties | 2 +- .../java/net/raphimc/viaproxy/ui/ViaProxyUI.java | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index b2ee137..464e926 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ dependencies { exclude group: "com.google.guava", module: "guava" } include "com.viaversion:viarewind-core:2.0.3-SNAPSHOT" - include "net.raphimc:ViaLegacy:2.0.3" + include "net.raphimc:ViaLegacy:2.0.4" include("net.raphimc:ViaProtocolHack:2.0.1") { exclude group: "org.slf4j", module: "slf4j-api" } @@ -52,13 +52,19 @@ dependencies { include "net.sf.jopt-simple:jopt-simple:5.0.4" include "org.apache.logging.log4j:log4j-core:2.19.0" include "org.apache.logging.log4j:log4j-slf4j-impl:2.19.0" - include "com.github.GeyserMC:MCAuthLib:1.4" - include "net.lenni0451.classtransform:mixinstranslator:1.7.5" - include "net.lenni0451.classtransform:mixinsdummy:1.7.5" - include "net.lenni0451.classtransform:additionalclassprovider:1.7.5" + include("com.github.GeyserMC:MCAuthLib:1.4") { + exclude group: "com.google.code.gson", module: "gson" + } + include "net.lenni0451.classtransform:mixinstranslator:1.7.6" + include "net.lenni0451.classtransform:mixinsdummy:1.7.6" + include "net.lenni0451.classtransform:additionalclassprovider:1.7.6" include "net.lenni0451:Reflect:1.0.2" include "net.lenni0451:LambdaEvents:2.0.3" include "net.raphimc.netminecraft:all:2.2.2" + include("net.raphimc:MinecraftAuth:2.0.1") { + exclude group: "com.google.code.gson", module: "gson" + exclude group: "org.slf4j", module: "slf4j-api" + } } blossom { diff --git a/gradle.properties b/gradle.properties index 67de5dd..a380f94 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,4 +6,4 @@ org.gradle.configureondemand=true # Project properties maven_name=ViaProxy maven_group=net.raphimc -maven_version=3.0.0 +maven_version=3.0.1 diff --git a/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java b/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java index 5e4230c..f31bb9b 100644 --- a/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java +++ b/src/main/java/net/raphimc/viaproxy/ui/ViaProxyUI.java @@ -39,7 +39,7 @@ public class ViaProxyUI extends JFrame { final StringBuilder builder = new StringBuilder("An error occurred:\n"); builder.append("[").append(e.getClass().getSimpleName()).append("] ").append(e.getMessage()).append("\n"); for (StackTraceElement element : e.getStackTrace()) { - builder.append("\tat ").append(element.toString()).append("\n"); + builder.append(element.toString()).append("\n"); } this.showError(builder.toString()); });