From f9513aa7517a5f81ccb491ffc524b6771883293d Mon Sep 17 00:00:00 2001 From: ineanto Date: Mon, 19 Jun 2023 15:38:17 +0200 Subject: [PATCH] style: chat session data comment move --- .../xyz/atnrch/nicko/disguise/AppearanceManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java b/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java index cc6f507..4386823 100644 --- a/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java +++ b/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java @@ -175,6 +175,11 @@ public class AppearanceManager { 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( player.getUniqueId(), player.getPing(), @@ -182,11 +187,6 @@ public class AppearanceManager { EnumWrappers.NativeGameMode.fromBukkit(player.getGameMode()), gameProfile, 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); }