Skip to content

Commit af2a3ce

Browse files
authored
Merge pull request #41 from yonilerner/fix-team-missing
Fix missing team
2 parents 476a560 + e294ba0 commit af2a3ce

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
mkdir -p output/RetakesPlugin
2727
mv ./bin/Debug/net7.0/RetakesPlugin.dll output/RetakesPlugin/
28+
mv ./bin/Debug/net7.0/RetakesPlugin.pdb output/RetakesPlugin/
2829
mv ./map_config output/RetakesPlugin/
2930
mv ./lang output/RetakesPlugin/
3031
- name: Copy output (no map configs)

Modules/Managers/SpawnManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ public List<Spawn> GetSpawns(Bombsite bombsite, CsTeam? team = null)
8585
}
8686

8787
var team = player.Team;
88+
if (team != CsTeam.Terrorist && team != CsTeam.CounterTerrorist)
89+
{
90+
continue;
91+
}
92+
8893
if (planter == null && team == CsTeam.Terrorist)
8994
{
9095
planter = player;

0 commit comments

Comments
 (0)