mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Fix try list giving up after the first server (for 1.0.x).
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user