Skip to content

Commit

Permalink
Cap the placeholder evulation in the menu as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSzabo committed Oct 17, 2024
1 parent 321685d commit 118c1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/gg/auroramc/levels/menu/LevelMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private AuroraMenu createMenu() {
defaultMaterial = Material.RED_STAINED_GLASS_PANE;
}

List<Placeholder<?>> placeholders = leveler.getRewardFormulaPlaceholders(player, iteratorLevel);
List<Placeholder<?>> placeholders = leveler.getRewardFormulaPlaceholders(player, Math.min(iteratorLevel, leveler.getLevelCap()));
placeholders.add(lbPositionPlaceholder);
placeholders.add(lbPositionPercentPlaceholder);
placeholders.add(lbBoardSizePlaceholder);
Expand Down

0 comments on commit 118c1bb

Please sign in to comment.