3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 08:10:11 +01:00

Only upload the skin on Floodgate

Dieser Commit ist enthalten in:
Camotoy 2021-05-30 21:36:25 -04:00
Ursprung db583135eb
Commit 2f2e2cc285
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -732,6 +732,8 @@ public class GeyserSession implements CommandSender {
address = handshakePacket.getHostname(); address = handshakePacket.getHostname();
} }
System.out.println((address + addressSuffix).getBytes(StandardCharsets.UTF_8).length);
event.setPacket(new HandshakePacket( event.setPacket(new HandshakePacket(
handshakePacket.getProtocolVersion(), handshakePacket.getProtocolVersion(),
address + addressSuffix, address + addressSuffix,
@ -802,10 +804,12 @@ public class GeyserSession implements CommandSender {
SkinManager.handleBedrockSkin(playerEntity, clientData); SkinManager.handleBedrockSkin(playerEntity, clientData);
} }
if (remoteAuthType == AuthType.FLOODGATE) {
// We'll send the skin upload a bit after the handshake packet (aka this packet), // We'll send the skin upload a bit after the handshake packet (aka this packet),
// because otherwise the global server returns the data too fast. // because otherwise the global server returns the data too fast.
getAuthData().upload(connector); getAuthData().upload(connector);
} }
}
PacketTranslatorRegistry.JAVA_TRANSLATOR.translate(event.getPacket().getClass(), event.getPacket(), GeyserSession.this); PacketTranslatorRegistry.JAVA_TRANSLATOR.translate(event.getPacket().getClass(), event.getPacket(), GeyserSession.this);
} }