Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
fix: don't join dead groups
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Sep 22, 2024
1 parent d511786 commit 46847b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/game/objects/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class PlayerBarn {
const sameTeamId = team && team.teamId == group.players[0].teamId;
return (
(team ? sameTeamId : true) &&
!group.allDeadOrDisconnected &&
group.autoFill &&
group.players.length < this.game.teamMode &&
this.game.teamMode -
Expand Down

0 comments on commit 46847b1

Please sign in to comment.