mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
Fix names not showing up on some servers.
This commit is contained in:
parent
f55f073b38
commit
f2cd2f3c78
@ -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…
x
Reference in New Issue
Block a user