]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[BugFix] Persist Job Restrictions When New User Late Joins (#26498)
authorJake Huxell <JakeHuxell@pm.me>
Fri, 29 Mar 2024 02:30:23 +0000 (22:30 -0400)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 02:30:23 +0000 (13:30 +1100)
* make sure to keep late join button disabled if requirements not met

* more succinct representation of condition

Content.Client/LateJoin/LateJoinGui.cs

index d6a028d6c45d4d1794e6942027c8f21ec9ca6fee..ba9351d6746bb32a5cc92eb1a7eba3d84b8946f3 100644 (file)
@@ -309,7 +309,7 @@ namespace Content.Client.LateJoin
                                 if (matchingJobButton.Amount != updatedJobValue)
                                 {
                                     matchingJobButton.RefreshLabel(updatedJobValue);
-                                    matchingJobButton.Disabled = matchingJobButton.Amount == 0;
+                                    matchingJobButton.Disabled |= matchingJobButton.Amount == 0;
                                 }
                             }
                         }