SteamWar/FightSystem
Archiviert
13
1

Merge branch 'fixTestarenaEventarenaExceptions' of SteamWar/FightSystem into master

Dieser Commit ist enthalten in:
Yaruma3341 2020-01-19 17:19:07 +01:00 committet von Gitea
Commit d02ede97e0

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());
}