Fixed 2 crashes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user