style: chat session data comment move

This commit is contained in:
ineanto 2023-06-19 15:38:17 +02:00
parent f447abe963
commit f9513aa751

View file

@ -175,6 +175,11 @@ public class AppearanceManager {
remove.sendPacket(player); remove.sendPacket(player);
} }
// Yes, I skip providing chat session data.
// Yes, this will cause players to get kicked
// as soon as they send a message on versions above 1.19.2.
// No, I'll not waste another day fixing their mess. Go cry about it to Mojang.
// (Long live NoEncryption!)
add.setData(ImmutableList.of(new PlayerInfoData( add.setData(ImmutableList.of(new PlayerInfoData(
player.getUniqueId(), player.getUniqueId(),
player.getPing(), player.getPing(),
@ -182,11 +187,6 @@ public class AppearanceManager {
EnumWrappers.NativeGameMode.fromBukkit(player.getGameMode()), EnumWrappers.NativeGameMode.fromBukkit(player.getGameMode()),
gameProfile, gameProfile,
WrappedChatComponent.fromText(displayName) WrappedChatComponent.fromText(displayName)
// Yes, I skip providing chat session data.
// Yes, this will cause players to get kicked
// as soon as they send a message on versions above 1.19.2.
// No, I'll not waste another day fixing their mess. Go cry about it to Mojang.
// (Long live NoEncryption!)
))); )));
add.sendPacket(player); add.sendPacket(player);
} }