Fix Repair enchant logic

This commit is contained in:
nossr50 2019-06-14 20:44:33 -07:00
parent ef71661db1
commit 8f55a6277a

View File

@ -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);
}
}