From dd4ed0a67b4b2873019fc33a3c5550da8690ae2f Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Thu, 16 Nov 2023 12:48:33 +0100 Subject: [PATCH] fix: name check packet not setting name --- Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs b/Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs index 6799961..2122db9 100644 --- a/Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs +++ b/Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs @@ -9,7 +9,7 @@ public class CharacterNameCheckPacket : IPacket public void Deserialize(byte[] data) { - Encoding.ASCII.GetString(data, 0, 20); + Name = Encoding.ASCII.GetString(data, 0, 20).TrimEnd('\0').TrimEnd('\n').TrimEnd('\0'); } public byte[] Serialize()