Updated mclo.gs library

This commit is contained in:
RaphiMC 2024-08-07 18:09:43 +02:00
parent c08c8c3e2d
commit c006439741
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ plugins {
id "maven-publish" id "maven-publish"
id "idea" id "idea"
id "net.raphimc.class-token-replacer" version "1.1.3" id "net.raphimc.class-token-replacer" version "1.1.3"
id "xyz.wagyourtail.jvmdowngrader" version "1.0.0" id "xyz.wagyourtail.jvmdowngrader" version "1.0.1"
} }
base { base {
@ -97,11 +97,11 @@ dependencies {
include("org.cloudburstmc.netty:netty-transport-raknet:1.0.0.CR3-SNAPSHOT") { include("org.cloudburstmc.netty:netty-transport-raknet:1.0.0.CR3-SNAPSHOT") {
exclude group: "io.netty" exclude group: "io.netty"
} }
include "gs.mclo:api:3.0.1" include "gs.mclo:api:4.0.3"
include "net.lenni0451:optconfig:1.0.0-SNAPSHOT" include "net.lenni0451:optconfig:1.0.0-SNAPSHOT"
includeJ8(compileOnly("xyz.wagyourtail.jvmdowngrader:jvmdowngrader:1.0.0")) includeJ8(compileOnly("xyz.wagyourtail.jvmdowngrader:jvmdowngrader:1.0.1"))
includeJ8 "xyz.wagyourtail.jvmdowngrader:jvmdowngrader-java-api:1.0.0:downgraded-8" includeJ8 "xyz.wagyourtail.jvmdowngrader:jvmdowngrader-java-api:1.0.1:downgraded-8"
} }
sourceSets { sourceSets {

View File

@ -180,7 +180,7 @@ public class AdvancedTab extends UITab {
try { try {
this.uploadLogsButton.setEnabled(false); this.uploadLogsButton.setEnabled(false);
final MclogsClient mclogsClient = new MclogsClient("ViaProxy", ViaProxy.VERSION); final MclogsClient mclogsClient = new MclogsClient("ViaProxy", ViaProxy.VERSION);
final UploadLogResponse apiResponse = mclogsClient.uploadLog(logFile.toPath()); final UploadLogResponse apiResponse = mclogsClient.uploadLog(logFile.toPath()).get();
if (apiResponse.isSuccess()) { if (apiResponse.isSuccess()) {
ViaProxyWindow.openURL(apiResponse.getUrl()); ViaProxyWindow.openURL(apiResponse.getUrl());
final StringSelection selection = new StringSelection(apiResponse.getUrl()); final StringSelection selection = new StringSelection(apiResponse.getUrl());