Skip to content

Commit

Permalink
Merge pull request #6 from cloudnode-pro/patch
Browse files Browse the repository at this point in the history
Remove unspecified argument in `CEE#getMaxLevel`
  • Loading branch information
zefir-git authored Aug 19, 2023
2 parents c8437e8 + 1b6a584 commit 912425c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void onPrepareAnvil(final @NotNull PrepareAnvilEvent event) {
}
else finalLevel = upgradeLevel;
if (finalLevel < enchantment.getMaxLevel()) continue;
if (configEnchantment.get().getMaxLevel(enchantment).isPresent() && finalLevel > configEnchantment.get().getMaxLevel(enchantment).get()) continue;
if (configEnchantment.get().getMaxLevel().isPresent() && finalLevel > configEnchantment.get().getMaxLevel().get()) continue;
if (finalLevel > upgradeLevel) cost += configEnchantment.get().getMultiplyCostByLevel() ? configEnchantment.get().getCost() * (finalLevel - enchantment.getMaxLevel()) : configEnchantment.get().getCost();
upgrades.put(enchantment, finalLevel);
}
Expand Down

0 comments on commit 912425c

Please sign in to comment.