3.4.2-beta

This commit is contained in:
okx-code
2019-02-07 20:15:35 +00:00
parent 3682cd6150
commit aacd06b43e
5 changed files with 13 additions and 35 deletions
+2 -3
View File
@@ -59,7 +59,7 @@ public class RankList<T extends Rank> {
return rank;
}
}
return null;
throw new RuntimeException("Invalid rank: " + name);
}
public T getByPlayer(Player player) {
@@ -83,7 +83,6 @@ public class RankList<T extends Rank> {
return nextRank;
}
}
// this shouldn't happen but whatever
return null;
throw new RuntimeException(rank.getName() + " has an invalid next rank");
}
}