Skip to content

Commit

Permalink
Fixed character counts in server list
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-dev committed Sep 28, 2024
1 parent 0b80c4d commit ddce846
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ protected void writeImpl(LoginConnection con) {
writeH(0); // unk, always 0
writeC(0);// server.brackets ? 1 : 0
}
writeH(maxIdWithChars);
writeH(maxIdWithChars + 1);
writeC(1); // enable "last server" button & auto-connection ? 1 : 0
for (byte i = 1; i <= maxIdWithChars; i++)
writeC(charCountOnServer.getOrDefault(i, 0));
for (byte gsId = 1; gsId <= maxIdWithChars; gsId++)
writeC(charCountOnServer.getOrDefault(gsId, 0));
writeB(new byte[13]); // unk (44 77 90 A8 5D 75 C9 98 6D 20 53 2A 97)
}
}

0 comments on commit ddce846

Please sign in to comment.