mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-19 07:27:42 +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())
|
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());
|
||||||
|
|||||||
Reference in New Issue
Block a user