Skip to content

Commit 5447959

Browse files
authored
Merge pull request #13 from oscar-wos/minplayers-fix
2 parents 9e7398d + 76b4286 commit 5447959

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/AntiRush.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ private void DoAction(CCSPlayerController controller, Zone zone)
159159

160160
case ZoneType.Wall:
161161
controller.PlayerPawn.Value?.Teleport(new Vector(_playerData[controller].LastPos[0], _playerData[controller].LastPos[1], _playerData[controller].LastPos[2]), null, Vector.Zero);
162-
163162
return;
164163
}
165164
}

src/Events.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ private HookResult OnRoundStart(EventRoundStart @event, GameEventInfo info)
1313
_bombPlanted = false;
1414

1515
_gameRules = GameUtils.GetGameRules();
16-
_minPlayers = Utilities.GetPlayers().Where(p => p.Team == (CsTeam.Terrorist | CsTeam.CounterTerrorist)).ToList().Count >= Config.MinPlayers;
16+
_minPlayers = Utilities.GetPlayers().Where(p => p.Team is CsTeam.CounterTerrorist or CsTeam.Terrorist).ToList().Count >= Config.MinPlayers;
1717

1818
foreach (var zone in _zones)
1919
{

src/Globals.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace AntiRush;
88
public partial class AntiRush
99
{
1010
public override string ModuleName => "AntiRush";
11-
public override string ModuleVersion => "1.0.10";
11+
public override string ModuleVersion => "1.0.11";
1212
public override string ModuleAuthor => "https://github.com/oscar-wos/AntiRush";
1313
public AntiRushConfig Config { get; set; } = new();
1414
public Menu.Menu Menu { get; } = new();

0 commit comments

Comments
 (0)