Fixed java 9 or higher crash

This commit is contained in:
RaphiMC 2023-01-05 22:42:15 +01:00
parent 73d2955f72
commit 96d7eb824e
3 changed files with 13 additions and 7 deletions

View File

@ -42,7 +42,7 @@ dependencies {
exclude group: "com.google.guava", module: "guava" exclude group: "com.google.guava", module: "guava"
} }
include "com.viaversion:viarewind-core:2.0.3-SNAPSHOT" 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") { include("net.raphimc:ViaProtocolHack:2.0.1") {
exclude group: "org.slf4j", module: "slf4j-api" exclude group: "org.slf4j", module: "slf4j-api"
} }
@ -52,13 +52,19 @@ dependencies {
include "net.sf.jopt-simple:jopt-simple:5.0.4" 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-core:2.19.0"
include "org.apache.logging.log4j:log4j-slf4j-impl:2.19.0" include "org.apache.logging.log4j:log4j-slf4j-impl:2.19.0"
include "com.github.GeyserMC:MCAuthLib:1.4" include("com.github.GeyserMC:MCAuthLib:1.4") {
include "net.lenni0451.classtransform:mixinstranslator:1.7.5" exclude group: "com.google.code.gson", module: "gson"
include "net.lenni0451.classtransform:mixinsdummy:1.7.5" }
include "net.lenni0451.classtransform:additionalclassprovider:1.7.5" 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:Reflect:1.0.2"
include "net.lenni0451:LambdaEvents:2.0.3" include "net.lenni0451:LambdaEvents:2.0.3"
include "net.raphimc.netminecraft:all:2.2.2" 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 { blossom {

View File

@ -6,4 +6,4 @@ org.gradle.configureondemand=true
# Project properties # Project properties
maven_name=ViaProxy maven_name=ViaProxy
maven_group=net.raphimc maven_group=net.raphimc
maven_version=3.0.0 maven_version=3.0.1

View File

@ -39,7 +39,7 @@ public class ViaProxyUI extends JFrame {
final StringBuilder builder = new StringBuilder("An error occurred:\n"); final StringBuilder builder = new StringBuilder("An error occurred:\n");
builder.append("[").append(e.getClass().getSimpleName()).append("] ").append(e.getMessage()).append("\n"); builder.append("[").append(e.getClass().getSimpleName()).append("] ").append(e.getMessage()).append("\n");
for (StackTraceElement element : e.getStackTrace()) { for (StackTraceElement element : e.getStackTrace()) {
builder.append("\tat ").append(element.toString()).append("\n"); builder.append(element.toString()).append("\n");
} }
this.showError(builder.toString()); this.showError(builder.toString());
}); });