fix: name check packet not setting name
This commit is contained in:
parent
854ac06de6
commit
dd4ed0a67b
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ public class CharacterNameCheckPacket : IPacket
|
||||||
|
|
||||||
public void Deserialize(byte[] data)
|
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()
|
public byte[] Serialize()
|
||||||
|
|
Loading…
Reference in a new issue