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())
.connectWithIndication()
.whenCompleteAsync((newResult, exception) -> {
if (newResult == null || !newResult) {
disconnect(friendlyReason);
} else {
if (newResult != null && newResult) {
sendMessage(VelocityMessages.MOVED_TO_NEW_SERVER);
}
}, minecraftConnection.eventLoop());