Skip to content

Commit

Permalink
Remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Apr 15, 2023
1 parent 0c6731c commit 7a58058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/world/bentobox/topblock/PlaceholderManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ protected void registerPlaceholders(GameModeAddon gm) {
for (int i = 0; i < TopBlock.TEN; i++) {
TopTenData r = i < rList.size() ? rList.get(i) : null;
int rank = i + 1;
registerPH(bpm, gm, rank, r, i);
registerPH(bpm, gm, rank, r);
}
}

private void registerPH(PlaceholdersManager bpm, GameModeAddon gm, int rank, TopTenData r, int i) {
private void registerPH(PlaceholdersManager bpm, GameModeAddon gm, int rank, TopTenData r) {
// Name of island owner
bpm.registerPlaceholder(gm, "island_player_name_top_" + rank, u -> r == null ? "" : getPlayerName(r));
// Name of island team members
Expand Down

0 comments on commit 7a58058

Please sign in to comment.