diff --git a/Content.Server/_CorvaxNext/StationEvents/Events/SpaceLawChange.cs b/Content.Server/_CorvaxNext/StationEvents/Events/SpaceLawChange.cs index a2fde5ec715..e8a1960ff8d 100644 --- a/Content.Server/_CorvaxNext/StationEvents/Events/SpaceLawChange.cs +++ b/Content.Server/_CorvaxNext/StationEvents/Events/SpaceLawChange.cs @@ -38,7 +38,7 @@ protected override void Started(EntityUid uid, SpaceLawChangeRuleComponent compo base.Started(uid, component, gameRule, args); if (!_cfg.GetCVar(NextVars.LRPEnabled)) - return; + return; // Loading a prototype dataset if (!_prototypeManager.TryIndex(component.LawLocalizedDataset, out var dataset)) @@ -57,7 +57,7 @@ protected override void Started(EntityUid uid, SpaceLawChangeRuleComponent compo var activeLaws = GetActiveSpaceLaws(); // Excluding active laws from selection - var availableLaws = _sequenceLaws.Except(activeLaws).ToList(); + var availableLaws = _sequenceLaws.Except(activeLaws).ToArray(); if (availableLaws.Count == 0) { availableLaws = _sequenceLaws;