Fixed 2 crashes

This commit is contained in:
Anuken
2018-10-20 11:48:59 -04:00
parent 62bb8bce1c
commit ef5478279b
2 changed files with 2 additions and 3 deletions
@@ -19,8 +19,6 @@ public class Teams{
* @param enemies The array of enemies of this team. Any team not in this array is considered neutral.
*/
public void add(Team team, Team... enemies){
if(map[team.ordinal()] != null) throw new RuntimeException("Can't define team information twice!");
map[team.ordinal()] = new TeamData(team, EnumSet.of(enemies));
}