Dirty hotfix of Points NPE
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
67ad92bc90
Commit
11251727bf
@ -18,8 +18,8 @@ import java.util.Set;
|
||||
public class WinconditionRelativePercent extends Wincondition{
|
||||
|
||||
private static final Set<Material> ignoredBlocks;
|
||||
private static TeamPercent blue;
|
||||
private static TeamPercent red;
|
||||
private static TeamPercent blue = null;
|
||||
private static TeamPercent red = null;
|
||||
|
||||
static{
|
||||
Set<Material> ignored = new HashSet<>();
|
||||
@ -33,17 +33,21 @@ public class WinconditionRelativePercent extends Wincondition{
|
||||
}
|
||||
|
||||
public static TeamPercent getBlue(){
|
||||
if(blue == null)
|
||||
blue = new TeamPercent(Fight.getBlueTeam());
|
||||
return blue;
|
||||
}
|
||||
|
||||
public static TeamPercent getRed(){
|
||||
if(red == null)
|
||||
red = new TeamPercent(Fight.getRedTeam());
|
||||
return red;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enable() {
|
||||
blue = new TeamPercent(Fight.getBlueTeam());
|
||||
red = new TeamPercent(Fight.getRedTeam());
|
||||
getBlue();
|
||||
getRed();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren