3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-28 06:31:05 +02:00

Allow client intention packet to be cancelled (#4114)

Dieser Commit ist enthalten in:
EnZaXD 2024-08-22 10:59:35 +02:00 committet von GitHub
Ursprung c6381e7f4d
Commit b586b0d361
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -134,7 +134,7 @@ public class InitialBaseProtocol extends AbstractProtocol<BaseClientboundPacket,
protocols.remove(this); protocols.remove(this);
wrapper.apply(Direction.SERVERBOUND, State.HANDSHAKE, protocols); wrapper.apply(Direction.SERVERBOUND, State.HANDSHAKE, protocols);
} catch (CancelException e) { } catch (CancelException e) {
throw new RuntimeException("Cancelling the client intention packet is not allowed", e); wrapper.cancel();
} }
if (Via.getManager().isDebug()) { if (Via.getManager().isDebug()) {