Skip to content

Commit

Permalink
getting wrong rank :p
Browse files Browse the repository at this point in the history
  • Loading branch information
copperdevs committed Feb 3, 2024
1 parent 330f146 commit 8ed3d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CopperMatchmaking/Server/ServerMessageHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal static void ClientJoinedMessageHandler(ushort sender, Message receivedM
Log.Info($"Received new ClientJoined message. | PlayerId: {playerId} | RankId: {rankId} | Sender: {sender}");

var connection = MatchmakerServer.Instance.Server.GetConnection(sender);
var rank = MatchmakerServer.Instance.Ranks[rankId - 1];
var rank = MatchmakerServer.Instance.Ranks[rankId];

if (connection is null)
{
Expand Down

0 comments on commit 8ed3d35

Please sign in to comment.