mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-19 07:01:09 +03:00
I successfully broke the game.
This commit is contained in:
parent
36181334b5
commit
f66b57ca47
1 changed files with 3 additions and 1 deletions
|
|
@ -109,9 +109,11 @@ public sealed partial class StationJobsSystem
|
|||
void AssignPlayer(NetUserId player, string job, EntityUid station)
|
||||
{
|
||||
// Remove the player from all possible jobs as that's faster than actually checking what they have selected.
|
||||
foreach (var (_, players) in jobPlayerOptions)
|
||||
foreach (var (k, players) in jobPlayerOptions)
|
||||
{
|
||||
players.Remove(player);
|
||||
if (players.Count == 0)
|
||||
jobPlayerOptions.Remove(k);
|
||||
}
|
||||
|
||||
stationJobs[station][job]--;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue