Fixed a misstake. Now ignores vanilla.

This commit is contained in:
Adrian Bergqvist 2022-07-31 17:19:22 +02:00
parent 47db704422
commit 43e0ba91c7
No known key found for this signature in database
GPG Key ID: FAE7D8EDE225E686
3 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ plugins {
} }
group 'org.adde0109' group 'org.adde0109'
version '0.3.0' version '0.3.1'
repositories { repositories {
maven { maven {

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.3.0", authors = {"adde0109"}) @Plugin(id = "ambassador", name = "Ambassador", version = "0.3.1", authors = {"adde0109"})
public class Ambassador { public class Ambassador {
private final ProxyServer server; private final ProxyServer server;

View File

@ -53,7 +53,8 @@ public class ForgeHandshakeHandler {
ForgeConnection forgeConnection = new ForgeConnection((LoginPhaseConnection) event.getConnection(), logger); ForgeConnection forgeConnection = new ForgeConnection((LoginPhaseConnection) event.getConnection(), logger);
forgeConnection.testIfForge((LoginPhaseConnection) event.getConnection()) forgeConnection.testIfForge((LoginPhaseConnection) event.getConnection())
.thenAccept((isForge) -> { .thenAccept((isForge) -> {
registerForgeConnection(forgeConnection); if (isForge)
registerForgeConnection(forgeConnection);
}); });
if (defaultServer != null) { if (defaultServer != null) {