feature/72-channelselection-and-character-creation #82
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ public class LoginInfoPacket : IPacket
|
|||
public void Deserialize(byte[] data)
|
||||
{
|
||||
this.Username = Encoding.ASCII.GetString(data, 0, 20).TrimEnd('\0');
|
||||
this.Password = Encoding.ASCII.GetString(data, 20, 31).TrimEnd('\0');
|
||||
// Remove unnecessary Symbols
|
||||
this.Password = Encoding.ASCII.GetString(data, 20, 31).TrimEnd('\n').TrimEnd('\0');
|
||||
}
|
||||
|
||||
public byte[] Serialize()
|
||||
|
|
Loading…
Add table
Reference in a new issue