mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
NullPointerException fixed on InteractionGameGate
This commit is contained in:
parent
b0473e89c9
commit
54cf0b1109
@ -46,7 +46,12 @@ public abstract class InteractionGameGate extends InteractionGameTeamItem
|
||||
}
|
||||
|
||||
public void updateState(Game game, int maxPlayers) {
|
||||
int memberCount = game.getTeam(this.teamColor).getMembers().size();
|
||||
int memberCount = 0;
|
||||
|
||||
if(game.getTeam(this.teamColor) != null) {
|
||||
memberCount = game.getTeam(this.teamColor).getMembers().size();
|
||||
}
|
||||
|
||||
if(memberCount > maxPlayers) {
|
||||
memberCount = maxPlayers;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user