mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Only upload the skin on Floodgate
This commit is contained in:
parent
db583135eb
commit
2f2e2cc285
1 changed files with 7 additions and 3 deletions
|
@ -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,9 +804,11 @@ public class GeyserSession implements CommandSender {
|
||||||
SkinManager.handleBedrockSkin(playerEntity, clientData);
|
SkinManager.handleBedrockSkin(playerEntity, clientData);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We'll send the skin upload a bit after the handshake packet (aka this packet),
|
if (remoteAuthType == AuthType.FLOODGATE) {
|
||||||
// because otherwise the global server returns the data too fast.
|
// We'll send the skin upload a bit after the handshake packet (aka this packet),
|
||||||
getAuthData().upload(connector);
|
// because otherwise the global server returns the data too fast.
|
||||||
|
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);
|
||||||
|
|
Loading…
Reference in a new issue