Elikill58 / Negativity

Github of Negativity, a Minecraft AntiCheat. Premium at 8€:
https://spigotmc.org/resources/86874/
241 stars 65 forks source link

Add 1.20.2 Support #416

Closed Dreeam-qwq closed 1 year ago

Elikill58 commented 1 year ago

If it's in WIP, you can set your PR in draft. Is that finished?

Dreeam-qwq commented 1 year ago

If it's in WIP, you can set your PR in draft. Is that finished?

No, It still is not finished, there are some reading packet errors when player join server, and I don't know how to fix( like this

[21:20:37 ERROR]: [Negativity] Failed to read packet with ID 22 (POSITION_LOOK) to Dreeam__ (CLIENT_TO_SERVER - decode - 1.20.2)
java.lang.IndexOutOfBoundsException: readerIndex(25) + length(4) exceeds writerIndex(26): PacketSerializer(ridx: 25, widx: 26, cap: 26)
        at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1442) ~[netty-buffer-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:809) ~[netty-buffer-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.buffer.AbstractByteBuf.readFloat(AbstractByteBuf.java:856) ~[netty-buffer-4.1.98.Final.jar:4.1.98.Final]
        at com.elikill58.negativity.api.packets.packet.playin.NPacketPlayInPositionLook.read(NPacketPlayInPositionLook.java:20) ~[Negativity-2.7.1-SNAPSHOT.jar:?]
        at com.elikill58.negativity.api.packets.nms.channels.netty.NettyHandlerCommon.readPacketFromByteBuf(NettyHandlerCommon.java:60) ~[Negativity-2.7.1-SNAPSHOT.jar:?]
        at com.elikill58.negativity.api.packets.nms.channels.netty.NettyDecoderHandler.channelRead(NettyDecoderHandler.java:51) ~[Negativity-2.7.1-SNAPSHOT.jar:?]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[netty-codec-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) ~[netty-codec-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318) ~[netty-codec-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) ~[netty-handler-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.handler.flush.FlushConsolidationHandler.channelRead(FlushConsolidationHandler.java:152) ~[netty-handler-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.98.Final.jar:4.1.98.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.98.Final.jar:4.1.98.Final]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]