Skip to content

Commit

Permalink
忘れ物を取りに行った
Browse files Browse the repository at this point in the history
  • Loading branch information
ClockClap authored and = committed May 3, 2021
1 parent 3ef4c88 commit 99e2d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 7miTCT/src/main/java/me/clockclap/tct/game/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ private void giveRole(int playersCount) {
int role = rand.nextInt(NanamiTct.roleRegisterer.size());
for (GameRole r : NanamiTct.roleRegisterer.getRegisteredRoles()) {
int count = config.getInt("roles.count.custom." + r.getName().toLowerCase(), 1);
if (role == r.getIndex()) {
if (role == NanamiTct.roleRegisterer.indexOf(r)) {
if(getRoleCount().getCustomRoleCount().get(r) < count) {
int coin = plugin.getTctConfig().getConfig().getInt("roles.coin.custom." + r.getName().toLowerCase(), 0);
data.setRole(r);
Expand Down

0 comments on commit 99e2d56

Please sign in to comment.