Skip to content

Commit

Permalink
InvalidOperation hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bladuk committed Jun 1, 2022
1 parent af2680f commit 8dd3c5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ScpsInfoDisplay/EventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public void OnWaitingForPlayers()

public void OnRoundRestart()
{
foreach (KeyValuePair<Player, CoroutineHandle> kvp in _allDisplays)
foreach (KeyValuePair<Player, CoroutineHandle> display in _allDisplays.ToList())
{
if (kvp.Value.IsRunning)
Timing.KillCoroutines(kvp.Value);
_allDisplays.Remove(kvp.Key);
if (display.Key != null && display.Value.IsRunning)
Timing.KillCoroutines(display.Value);
_allDisplays.Remove(display.Key);
}
_allDisplays.Clear();
}
Expand Down
2 changes: 1 addition & 1 deletion ScpsInfoDisplay/ScpsInfoDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ internal class ScpsInfoDisplay : Plugin<Config>
public override string Prefix => "scpsinfodisplay";
public override string Name => "ScpsInfoDisplay";
public override string Author => "bladuk.";
public override Version Version { get; } = new Version(1, 1, 1);
public override Version Version { get; } = new Version(1, 1, 2);
public override Version RequiredExiledVersion { get; } = new Version(5, 2, 1);
public static ScpsInfoDisplay Singleton = new ScpsInfoDisplay();
private EventHandlers _eventHandlers;
Expand Down

0 comments on commit 8dd3c5e

Please sign in to comment.