Lauriethefish / BetterPortals

My plugin version of the popular BetterPortals mod which has many limitations, but requires no client side code
zlib License
68 stars 35 forks source link

ProtocolLib/BetterPortals Crash #197

Closed alankasprzyk23 closed 1 year ago

alankasprzyk23 commented 1 year ago

Describe the bug Plugin is enabled (with ProtocolLib) but portals are not seethrough

Server Logs [21:41:11] [Netty Server IO #0/WARN]: [ProtocolLib] [DetailedErrorReporter] Internal exception count: 1024! [21:41:11] [Netty Server IO #0/INFO]: Error Unable to intercept a read client packet. (java.lang.IllegalArgumentException: Unable to find a field null with the type com.mojang.authlib.GameProfile in net.minecraft.network.protocol.login.PacketLoginInStart) occured in com.comphenix.protocol.injector.netty.ChannelInjector@33f2f58d. [21:41:11] [Netty Server IO #0/ERROR]: [ProtocolLib] INTERNAL ERROR: Unable to intercept a read client packet. If this problem hasn't already been reported, please open a ticket at https://github.com/dmulloy2/ProtocolLib/issues with the following data: Stack Trace: java.lang.IllegalArgumentException: Unable to find a field null with the type com.mojang.authlib.GameProfile in net.minecraft.network.protocol.login.PacketLoginInStart at com.comphenix.protocol.reflect.FuzzyReflection.getFieldByType(FuzzyReflection.java:397) at com.comphenix.protocol.reflect.accessors.Accessors.getFieldAccessor(Accessors.java:57) at com.comphenix.protocol.injector.netty.ChannelInjector.handleLogin(ChannelInjector.java:658) at com.comphenix.protocol.injector.netty.ChannelInjector.decode(ChannelInjector.java:591) at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:519) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:458) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:280) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:336) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:308) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at com.comphenix.protocol.injector.netty.ChannelInjector$2.channelRead(ChannelInjector.java:292) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:336) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:308) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at java.base/java.lang.Thread.run(Thread.java:833) Dump: Parameters: io.netty.buffer.PooledUnsafeDirectByteBuf@64bfe38c[ memoryAddress=1678284312656 recyclerHandle=io.netty.util.Recycler$DefaultHandle@25138c83 chunk=Chunk(628d6c62: 15%, 598016/4194304) handle=67554024475328513 memory=java.nio.DirectByteBuffer[pos=0 lim=4194304 cap=4194304] offset=983056 length=10 maxLength=16 cache=io.netty.buffer.PoolThreadCache@3583c4d3 tmpNioBuf= allocator=PooledByteBufAllocator(directByDefault: true) refCnt=2 readerIndex=10 writerIndex=10 markedReaderIndex=0 markedWriterIndex=0 maxCapacity=2147483647 ] manager: com.comphenix.protocol.injector.PacketFilterManager@420e5cd7[ unhookTask=com.comphenix.protocol.injector.DelayedSingleTask@7590bbcf packetListeners=[] packetInjector=com.comphenix.protocol.injector.netty.ProtocolInjector$5@20525b05 playerInjection=com.comphenix.protocol.injector.netty.ProtocolInjector$4@a67a58b inputBufferedPackets=[] recievedListeners=com.comphenix.protocol.injector.SortedPacketListenerList@3a3fb8f4 sendingListeners=com.comphenix.protocol.injector.SortedPacketListenerList@4a0132bf hasClosed=false classLoader=org.bukkit.plugin.java.PluginClassLoader@543c9ab1 reporter=com.comphenix.protocol.ProtocolLib$1@4fc56bf8 server=CraftServer{serverName=CraftBukkit,serverVersion=3699-Spigot-6ad4b93-f92c945,minecraftVersion=1.19.4} library=ProtocolLib v4.8.0 asyncFilterManager=com.comphenix.protocol.async.AsyncFilterManager@4b2dcd86 knowsServerPackets=true knowsClientPackets=true phaseLoginCount=0 phasePlayingCount=0 packetCreation=false nettyInjector=com.comphenix.protocol.injector.netty.ProtocolInjector@609de5f6 pluginVerifier=com.comphenix.protocol.injector.PluginVerifier@2e7a3376 hasRecycleDistance=true minecraftVersion=(MC: 1.19.4) debug=false ] Sender: com.comphenix.protocol.injector.netty.ChannelInjector@33f2f58d[ decodeBuffer=protected void net.minecraft.network.PacketDecoder.decode(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,java.util.List) throws java.lang.Exception encodeBuffer=protected void net.minecraft.network.PacketEncoder.encode(io.netty.channel.ChannelHandlerContext,java.lang.Object,io.netty.buffer.ByteBuf) throws java.lang.Exception factory=com.comphenix.protocol.injector.netty.InjectionFactory@add482b player=CraftPlayer{name=Soremaple5} updated= playerName=Soremaple5 playerConnection= networkManager=net.minecraft.network.NetworkManager@6b2ca66a originalChannel=[id: 0x22061f80, L:/192.168.1.20:42069 - R:/37.228.207.99:24977] channelField=VolatileField [accessor=DefaultFieldAccessor [field=public io.netty.channel.Channel net.minecraft.network.NetworkManager.m], container=net.minecraft.network.NetworkManager@6b2ca66a, previous=[id: 0x22061f80, L:/192.168.1.20:42069 - R:/37.228.207.99:24977], current=com.comphenix.protocol.injector.netty.ChannelInjector$3@49c5dcd7, previousLoaded=true, currentSet=true, forceAccess=true] packetMarker={} currentEvent= finalEvent= unfilteredProcessedPackets=com.comphenix.protocol.injector.netty.PacketFilterQueue@6d3f06ff vanillaDecoder=net.minecraft.network.PacketDecoder@632ee2c4 vanillaEncoder=net.minecraft.network.PacketEncoder@5816dc01 finishQueue=[] channelListener=com.comphenix.protocol.injector.netty.ProtocolInjector@609de5f6 processor=com.comphenix.protocol.injector.NetworkProcessor@2a4f714b injected=true closed=false cumulation=PooledUnsafeDirectByteBuf(ridx: 10, widx: 10, cap: 10) cumulator=io.netty.handler.codec.ByteToMessageDecoder$1@4cd9dd1b singleDecode=false first=true firedChannelRead=false selfFiredChannelRead=true decodeState=1 discardAfterReads=16 numReads=0 added=true ] Version: ProtocolLib v4.8.0 Java Version: 17.0.4.1 Server: 3699-Spigot-6ad4b93-f92c945 (MC: 1.19.4)

Additional context Plugin Version: BetterPortal

Game Version: 1.19.4