Fix try list giving up after the first server (for 1.0.x).

This commit is contained in:
Andrew Steinborn
2020-08-22 13:37:57 -04:00
parent 79b16a21f6
commit b85f919238

View File

@@ -448,9 +448,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
createConnectionRequest(res.getServer()) createConnectionRequest(res.getServer())
.connectWithIndication() .connectWithIndication()
.whenCompleteAsync((newResult, exception) -> { .whenCompleteAsync((newResult, exception) -> {
if (newResult == null || !newResult) { if (newResult != null && newResult) {
disconnect(friendlyReason);
} else {
sendMessage(VelocityMessages.MOVED_TO_NEW_SERVER); sendMessage(VelocityMessages.MOVED_TO_NEW_SERVER);
} }
}, minecraftConnection.eventLoop()); }, minecraftConnection.eventLoop());