3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-20 06:50:08 +01:00

Try to schedule sending on switch (#3587)

Dieser Commit ist enthalten in:
Aeltumn 2023-12-16 07:20:53 -08:00 committet von GitHub
Ursprung 8e38e25cba
Commit 5d4b104b33
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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;
}