Try to schedule sending on switch (#3587)

This commit is contained in:
Aeltumn 2023-12-16 07:20:53 -08:00 committed by GitHub
parent 8e38e25cba
commit 5d4b104b33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,9 @@ public final class EntityPacketRewriter1_20_2 extends EntityRewriter<Clientbound
// No change, so no need to re-enter the configuration state - just let this one through
final PacketWrapper clientInformationPacket = configurationBridge.clientInformationPacket(wrapper.user());
if (clientInformationPacket != null) {
clientInformationPacket.sendToServer(Protocol1_20_2To1_20.class);
// Schedule the sending to ensure it arrives later, this fixes an issue where on
// servers running < 1.20.2 a client changing servers on a proxy lost skin layers
clientInformationPacket.scheduleSendToServer(Protocol1_20_2To1_20.class);
}
return;
}