ProtocolLib version: 5.2.0-SNAPSHOT-679
To Reproduce
Steps to reproduce the behavior:
Players joining the game
Player kicked out of the game
ERROR log:
`
1 | [07:44:02 ERROR]: Couldn't place player in world
-- | --
2 | net.minecraft.ReportedException: Sending packet
3 | at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2225) ~[?:?]
4 | at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2203) ~[?:?]
5 | at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:295) ~[paper-1.20.1.jar:git-Paper-196]
6 | at net.minecraft.server.network.ServerLoginPacketListenerImpl.placeNewPlayer(ServerLoginPacketListenerImpl.java:202) ~[?:?]
7 | at net.minecraft.server.network.ServerLoginPacketListenerImpl.handleAcceptedLogin(ServerLoginPacketListenerImpl.java:183) ~[?:?]
8 | at net.minecraft.server.network.ServerLoginPacketListenerImpl.tick(ServerLoginPacketListenerImpl.java:85) ~[?:?]
9 | at net.minecraft.network.Connection.tick(Connection.java:602) ~[?:?]
10 | at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:234) ~[?:?]
11 | at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1586) ~[paper-1.20.1.jar:git-Paper-196]
12 | at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.20.1.jar:git-Paper-196]
13 | at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1393) ~[paper-1.20.1.jar:git-Paper-196]
14 | at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1170) ~[paper-1.20.1.jar:git-Paper-196]
15 | at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.20.1.jar:git-Paper-196]
16 | at java.lang.Thread.run(Thread.java:842) ~[?:?]
17 | Caused by: java.lang.NullPointerException: type cannot be null
18 | at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:907) ~[guava-31.1-jre.jar:?]
19 | at com.comphenix.protocol.injector.StructureCache.getStructure(StructureCache.java:138) ~[ProtocolLib (1).jar:?]
20 | at com.comphenix.protocol.events.PacketContainer.(PacketContainer.java:126) ~[ProtocolLib (1).jar:?]
21 | at com.comphenix.protocol.injector.netty.manager.NetworkManagerInjector.onPacketSending(NetworkManagerInjector.java:96) ~[ProtocolLib (1).jar:?]
22 | at com.comphenix.protocol.injector.netty.channel.NettyChannelInjector.processOutbound(NettyChannelInjector.java:553) ~[ProtocolLib (1).jar:?]
23 | at com.comphenix.protocol.injector.netty.channel.NettyChannelInjector$2.doProxyRunnable(NettyChannelInjector.java:456) ~[ProtocolLib (1).jar:?]
24 | at com.comphenix.protocol.injector.netty.channel.NettyEventLoopProxy.proxyRunnable(NettyEventLoopProxy.java:43) ~[ProtocolLib (1).jar:?]
25 | at com.comphenix.protocol.injector.netty.channel.NettyEventLoopProxy.execute(NettyEventLoopProxy.java:252) ~[ProtocolLib (1).jar:?]
26 | at net.minecraft.network.Connection.sendPacket(Connection.java:449) ~[?:?]
27 | at net.minecraft.network.Connection.send(Connection.java:392) ~[?:?]
28 | at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2217) ~[?:?]
29 | ... 13 more
[07:44:02 ERROR]: Couldn't place player in world
net.minecraft.ReportedException: Sending packet
at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2225) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2203) ~[?:?]
at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:295) ~[paper-[1](https://mclo.gs/uGTTULZ#L1).[2](https://mclo.gs/uGTTULZ#L2)0.1.jar:git-Paper-196]
at net.minecraft.server.network.ServerLoginPacketListenerImpl.placeNewPlayer(ServerLoginPacketListenerImpl.java:202) ~[?:?]
at net.minecraft.server.network.ServerLoginPacketListenerImpl.handleAcceptedLogin(ServerLoginPacketListenerImpl.java:18[3](https://mclo.gs/uGTTULZ#L3)) ~[?:?]
at net.minecraft.server.network.ServerLoginPacketListenerImpl.tick(ServerLoginPacketListenerImpl.java:85) ~[?:?]
at net.minecraft.network.Connection.tick(Connection.java:602) ~[?:?]
at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:23[4](https://mclo.gs/uGTTULZ#L4)) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1[5](https://mclo.gs/uGTTULZ#L5)8[6](https://mclo.gs/uGTTULZ#L6)) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1393) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:11[7](https://mclo.gs/uGTTULZ#L7)0) ~[paper-1.20.1.jar:git-Paper-196]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.20.1.jar:git-Paper-196]
at java.lang.Thread.run(Thread.java:[8](https://mclo.gs/uGTTULZ#L8)42) ~[?:?]
Caused by: java.lang.NullPointerException: type cannot be null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:[9](https://mclo.gs/uGTTULZ#L9)07) ~[guava-31.1-jre.jar:?]
at com.comphenix.protocol.injector.StructureCache.getStructure(StructureCache.java:138) ~[ProtocolLib (1).jar:?]
at com.comphenix.protocol.events.PacketContainer.(PacketContainer.java:[12](https://mclo.gs/uGTTULZ#L12)6) ~[ProtocolLib (1).jar:?]
at com.comphenix.protocol.injector.netty.manager.NetworkManagerInjector.onPacketSending(NetworkManagerInjector.java:96) ~[ProtocolLib (1).jar:?]
at com.comphenix.protocol.injector.netty.channel.NettyChannelInjector.processOutbound(NettyChannelInjector.java:553) ~[ProtocolLib (1).jar:?]
at com.comphenix.protocol.injector.netty.channel.NettyChannelInjector$2.doProxyRunnable(NettyChannelInjector.java:456) ~[ProtocolLib (1).jar:?]
at com.comphenix.protocol.injector.netty.channel.NettyEventLoopProxy.proxyRunnable(NettyEventLoopProxy.java:43) ~[ProtocolLib (1).jar:?]
at com.comphenix.protocol.injector.netty.channel.NettyEventLoopProxy.execute(NettyEventLoopProxy.java:252) ~[ProtocolLib (1).jar:?]
at net.minecraft.network.Connection.sendPacket(Connection.java:449) ~[?:?]
at net.minecraft.network.Connection.send(Connection.java:392) ~[?:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.send(ServerGamePacketListenerImpl.java:2217) ~[?:?]
... [13](https://mclo.gs/uGTTULZ#L13) more`