I successfully broke the game.

This commit is contained in:
moonheart08
2022-05-10 14:33:08 -05:00
parent 36181334b5
commit f66b57ca47

View File

@@ -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]--;