Skip to content

Commit 7c40d0a

Browse files
committed
Removed testing commenting
1 parent e2579f6 commit 7c40d0a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Content.Server/_Starlight/Roles/Ranks/RankSystem.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public bool TryGetHighestEligibleRank(Guid userId, JobPrototype? job, string? jo
8484
{
8585
highestRank = null;
8686

87-
//if (!_linkPlayerManager.TryGetPlayerData(userId, out PlayerData? playerData))
88-
// return false;
87+
if (!_linkPlayerManager.TryGetPlayerData(userId, out PlayerData? playerData))
88+
return false;
8989

9090
if (jobId != null && _prototype.TryIndex(jobId, out JobPrototype? jobPrototype))
9191
job = jobPrototype;
@@ -104,8 +104,8 @@ public bool TryGetHighestEligibleRank(Guid userId, JobPrototype? job, string? jo
104104
if (!_prototype.TryIndex(rank.Requirement, out RoleRequirementPrototype? roleRequirement))
105105
continue;
106106

107-
//if (!playerData.Roles.Overlaps(roleRequirement.Roles))
108-
// continue;
107+
if (!playerData.Roles.Overlaps(roleRequirement.Roles))
108+
continue;
109109

110110
highestRank ??= rank;
111111

0 commit comments

Comments
 (0)