diff --git a/src/main/kotlin/com/github/creeper123123321/viaaas/codec/FrameCodec.kt b/src/main/kotlin/com/github/creeper123123321/viaaas/codec/FrameCodec.kt index fb58a9b..9b4e7b0 100644 --- a/src/main/kotlin/com/github/creeper123123321/viaaas/codec/FrameCodec.kt +++ b/src/main/kotlin/com/github/creeper123123321/viaaas/codec/FrameCodec.kt @@ -8,10 +8,8 @@ import us.myles.ViaVersion.api.type.Type class FrameCodec : ByteToMessageCodec() { override fun decode(ctx: ChannelHandlerContext, input: ByteBuf, out: MutableList) { - if (!ctx.channel().isActive) { - input.clear() // Ignore, should prevent DoS https://github.com/SpigotMC/BungeeCord/pull/2908 - return - } + if (!ctx.channel().isActive) return + // Ignore, should prevent DoS https://github.com/SpigotMC/BungeeCord/pull/2908 val index = input.readerIndex() var nByte = 0