Skip to content

Commit

Permalink
Merge pull request #103 from ipsvn/master
Browse files Browse the repository at this point in the history
fix bad logic with fallback announcer config option
  • Loading branch information
B3none authored Mar 30, 2024
2 parents e9c88ba + 4c0b856 commit 5a43804
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RetakesPlugin/Modules/Configs/RetakesConfigData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ public class RetakesConfigData
public string QueuePriorityFlag { get; set; } = "@css/vip";
public bool IsDebugMode { get; set; } = false;
public bool ShouldForceEvenTeamsWhenPlayerCountIsMultipleOf10 { get; set; } = true;
public bool EnableFallbackBombsiteAnnouncement { get; set; }
public bool EnableFallbackBombsiteAnnouncement { get; set; } = true;
}
3 changes: 2 additions & 1 deletion RetakesPlugin/RetakesPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ public HookResult OnRoundStart(EventRoundStart @event, GameEventInfo info)

_planter = _spawnManager.HandleRoundSpawns(_currentBombsite, _gameManager.QueueManager.ActivePlayers);

if (_retakesConfig?.RetakesConfigData?.EnableFallbackBombsiteAnnouncement is true or null)
if (!RetakesConfig.IsLoaded(_retakesConfig) ||
_retakesConfig!.RetakesConfigData!.EnableFallbackBombsiteAnnouncement)
{
AnnounceBombsite(_currentBombsite);
}
Expand Down

0 comments on commit 5a43804

Please sign in to comment.