Skip to content

Commit

Permalink
Merge pull request #2117 from Nyxane/main
Browse files Browse the repository at this point in the history
Added Grace +7 range for Max Enchant
  • Loading branch information
pietro-lopes authored Feb 6, 2025
2 parents ffaf0e9 + 822091f commit 788ac0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubejs/server_scripts/Tweaks/cap_enchants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PlayerEvents.loggedIn((allthemods) => {
(item) => {
item.enchantments.entrySet().forEach(
(enchant) => {
let maxLevel = $EnchHooks.getMaxLevel(enchant.getKey().value())
let maxLevel = $EnchHooks.getMaxLevel(enchant.getKey().value()) + 7;
if (enchant.getIntValue() > maxLevel) {
enchant.setValue(maxLevel)
}
Expand Down

0 comments on commit 788ac0d

Please sign in to comment.