mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-26 02:53:21 -05:00
Fix names not showing up on some servers.
This commit is contained in:
parent
f55f073b38
commit
f2cd2f3c78
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,9 @@ namespace ClassicalSharp {
|
|||
string groupName = reader.ReadAsciiString();
|
||||
byte groupRank = reader.ReadUInt8();
|
||||
|
||||
// Workaround for some servers that don't cast signed bytes to unsigned, before converting them to shorts.
|
||||
if( nameId < 0 )
|
||||
nameId += 256;
|
||||
if( nameId >= 0 && nameId <= 255 )
|
||||
AddCpeInfo( (byte)nameId, playerName, listName, groupName, groupRank );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue