From eeb89d676bc55455bdb70319408fb4c291c5c0b3 Mon Sep 17 00:00:00 2001 From: Anon Date: Sat, 6 Jun 2026 14:12:28 +0200 Subject: [PATCH] Formatting --- MinecraftClient/Protocol/Handlers/Protocol16.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MinecraftClient/Protocol/Handlers/Protocol16.cs b/MinecraftClient/Protocol/Handlers/Protocol16.cs index 8a6c5a39..cedbd412 100644 --- a/MinecraftClient/Protocol/Handlers/Protocol16.cs +++ b/MinecraftClient/Protocol/Handlers/Protocol16.cs @@ -209,8 +209,7 @@ namespace MinecraftClient.Protocol.Handlers case 0xC9: string name = ReadNextString(); bool online = ReadNextByte() != 0x00; ReadData(2); Guid FakeUUID = new(MD5.Create().ComputeHash(Encoding.UTF8.GetBytes(name)).Take(16).ToArray()); - if (online) - handler.OnPlayerJoin(new PlayerInfo(name, FakeUUID)); + if (online) handler.OnPlayerJoin(new PlayerInfo(name, FakeUUID)); else handler.OnPlayerLeave(FakeUUID); break; case 0xCA: if (protocolversion >= 72) { ReadData(9); } else ReadData(3); break;