Allow client intention packet to be cancelled (#4114)

This commit is contained in:
EnZaXD 2024-08-22 10:59:35 +02:00 committed by GitHub
parent c6381e7f4d
commit b586b0d361
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()) {