Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Fix misplaced connection in flight reset. Fixes #173
Dieser Commit ist enthalten in:
Ursprung
6a8345e045
Commit
1ec070069f
@ -388,13 +388,13 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
Component friendlyReason) {
|
Component friendlyReason) {
|
||||||
server.getEventManager().fire(originalEvent)
|
server.getEventManager().fire(originalEvent)
|
||||||
.thenAcceptAsync(event -> {
|
.thenAcceptAsync(event -> {
|
||||||
|
// There can't be any connection in flight now.
|
||||||
|
connectionInFlight = null;
|
||||||
|
|
||||||
if (event.getResult() instanceof DisconnectPlayer) {
|
if (event.getResult() instanceof DisconnectPlayer) {
|
||||||
DisconnectPlayer res = (DisconnectPlayer) event.getResult();
|
DisconnectPlayer res = (DisconnectPlayer) event.getResult();
|
||||||
disconnect(res.getReason());
|
disconnect(res.getReason());
|
||||||
} else if (event.getResult() instanceof RedirectPlayer) {
|
} else if (event.getResult() instanceof RedirectPlayer) {
|
||||||
// There can't be any connection in flight now.
|
|
||||||
connectionInFlight = null;
|
|
||||||
|
|
||||||
RedirectPlayer res = (RedirectPlayer) event.getResult();
|
RedirectPlayer res = (RedirectPlayer) event.getResult();
|
||||||
createConnectionRequest(res.getServer())
|
createConnectionRequest(res.getServer())
|
||||||
.connectWithIndication()
|
.connectWithIndication()
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren