mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-02-02 23:31:56 +01:00
checkOutgoingPacket
This commit is contained in:
parent
2565ff5f74
commit
2eb2871eb2
@ -184,7 +184,7 @@ class CloudViaCodec(val info: UserConnection) : MessageToMessageCodec<ByteBuf, B
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun encode(ctx: ChannelHandlerContext, bytebuf: ByteBuf, out: MutableList<Any>) {
|
override fun encode(ctx: ChannelHandlerContext, bytebuf: ByteBuf, out: MutableList<Any>) {
|
||||||
info.checkOutgoingPacket()
|
if (!info.checkOutgoingPacket()) throw CancelEncoderException.generate(null)
|
||||||
if (!info.shouldTransformPacket()) {
|
if (!info.shouldTransformPacket()) {
|
||||||
out.add(bytebuf.retain())
|
out.add(bytebuf.retain())
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user