This commit is contained in:
Lukas Moungos
2019-12-01 17:17:48 +01:00
parent d071cf5aed
commit 31899aa948

View File

@@ -88,8 +88,8 @@ namespace ReallifeGamemode.Server.Gangwar
{ {
try try
{ {
Client[] owners = this.playerInGangwar.Where(c => c.GetUser().Faction.Name == this.Owner).ToArray(); Client[] owners = NAPI.Pools.GetAllPlayers().Where(c => c.GetUser().Faction.Name == this.Owner).ToArray();
Client[] attackers = this.playerInGangwar.Where(c => c.GetUser().Faction.Name == this.Attacker).ToArray(); Client[] attackers = NAPI.Pools.GetAllPlayers().Where(c => c.GetUser().Faction.Name == this.Attacker).ToArray();
}catch(NullReferenceException ex) }catch(NullReferenceException ex)
{ {
int i = 0; int i = 0;