SteamWar/FightSystem
Archiviert
13
1

Fixing exceptions occuring in test and event arena

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-01-19 07:23:02 +01:00
Ursprung 11da798b4e
Commit 8353139d2c

Datei anzeigen

@ -114,6 +114,12 @@ public class Fight {
}
public static void calcAvailibleSchemTypes() {
if(redTeam.getLeader() == null || redTeam.getLeader().getPlayer() == null ||
blueTeam.getLeader() == null || blueTeam.getLeader().getPlayer() == null){
onlyPublicSchems = false;
return;
}
onlyPublicSchems = (Schematic.getSchemsOfType(redTeam.getLeader().getPlayer().getUniqueId(), Config.SchematicType).isEmpty() ||
Schematic.getSchemsOfType(blueTeam.getLeader().getPlayer().getUniqueId(), Config.SchematicType).isEmpty());
}