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()