Fixed playtime requirement tooltip (#10756)

This commit is contained in:
Martin Petkovski
2022-08-22 05:14:24 +10:00
committed by GitHub
parent 56b7b175b0
commit c24a8a072a
2 changed files with 11 additions and 7 deletions

View File

@@ -247,7 +247,7 @@ namespace Content.Client.LateJoin
string? reason = null;
if (value == 0 || !tracker.IsAllowed(prototype, out reason))
if (!tracker.IsAllowed(prototype, out reason))
{
jobButton.Disabled = true;
@@ -256,6 +256,10 @@ namespace Content.Client.LateJoin
jobButton.ToolTip = reason;
}
}
else if (value == 0)
{
jobButton.Disabled = true;
}
_jobButtons[id][prototype.ID] = jobButton;
}