mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-04 14:25:32 +02: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) {
|
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) {
|
if(memberCount > maxPlayers) {
|
||||||
memberCount = maxPlayers;
|
memberCount = maxPlayers;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user