#3756, #3757: Queue PlayerListItemRemove packets for disconnecting players

This commit is contained in:
Outfluencer 2024-10-21 12:05:01 +02:00 committed by GitHub
parent 2593130b3e
commit 8212e10c7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,8 @@ public class UpstreamBridge extends PacketHandler
{
if ( player.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_19_3 )
{
player.unsafe().sendPacket( newPacket );
// need to queue, because players in config state could receive it
( (UserConnection) player ).sendPacketQueued( newPacket );
} else
{
player.unsafe().sendPacket( oldPacket );