fix: name check packet not setting name

This commit is contained in:
Timothy Schenk 2023-11-16 12:48:33 +01:00
parent 854ac06de6
commit dd4ed0a67b

View file

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