Another atempt to fix "Unexpected custom data"

This commit is contained in:
Adrian Bergqvist 2022-08-28 11:48:01 +02:00
parent 7d9aba43ec
commit 6bca75b3ac
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ plugins {
} }
group 'org.adde0109' group 'org.adde0109'
version '0.4.0' version '0.5.1'
repositories { repositories {
maven { maven {
@ -19,7 +19,7 @@ dependencies {
implementation 'com.electronwill.night-config:toml:3.6.5' implementation 'com.electronwill.night-config:toml:3.6.5'
implementation 'org.bstats:bstats-velocity:3.0.0' implementation 'org.bstats:bstats-velocity:3.0.0'
implementation 'org.apache.commons:commons-collections4:4.4' implementation 'org.apache.commons:commons-collections4:4.4'
annotationProcessor 'com.velocitypowered:velocity-api:3.1.2-SNAPSHOT' annotationProcessor 'com.velocitypowered:velocity-api:3.1.1'
} }
shadowJar { shadowJar {

View File

@ -23,7 +23,7 @@ import org.slf4j.Logger;
import java.nio.file.Path; import java.nio.file.Path;
import java.util.*; import java.util.*;
@Plugin(id = "ambassador", name = "Ambassador", version = "0.4.0", authors = {"adde0109"}) @Plugin(id = "ambassador", name = "Ambassador", version = "0.5.1", authors = {"adde0109"})
public class Ambassador { public class Ambassador {
public ProxyServer server; public ProxyServer server;

View File

@ -68,9 +68,9 @@ public class ForgeConnection {
} }
//TODO: Generate the ACK packet ourself. //TODO: Generate the ACK packet ourself.
ForgeConnection.recivedClientACK = (response == null) ? ForgeConnection.recivedClientACK : response; ForgeConnection.recivedClientACK = (response == null) ? ForgeConnection.recivedClientACK : response;
transmittedHandshake = Optional.of(msg);
syncedTo = Optional.of(forgeServerConnection.getServer()); syncedTo = Optional.of(forgeServerConnection.getServer());
}); });
transmittedHandshake = Optional.of(msg);
future.complete(true); future.complete(true);
} }
}); });