mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-04-06 16:40:52 +08:00
Fix try list giving up after the first server (for 1.0.x).
This commit is contained in:
parent
79b16a21f6
commit
b85f919238
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user