mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fix Repair enchant logic
This commit is contained in:
parent
ef71661db1
commit
8f55a6277a
@ -333,6 +333,8 @@ public class RepairManager extends SkillManager {
|
||||
if(!ExperienceConfig.getInstance().allowUnsafeEnchantments()) {
|
||||
if(enchantLevel > enchant.getKey().getMaxLevel()) {
|
||||
enchantLevel = enchant.getKey().getMaxLevel();
|
||||
|
||||
item.addEnchantment(enchant.getKey(), enchantLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user