Fixed combining levels

This commit is contained in:
Auxilor 2021-01-05 18:26:18 +00:00
parent f69d6cef18
commit ca09e91f71

View File

@ -126,9 +126,8 @@ public class AnvilMerge {
if (rightLevel > level) { if (rightLevel > level) {
level = rightLevel; level = rightLevel;
} else if (rightLevel == level } else if (rightLevel == level
&& (rightLevel > enchantment.getMaxLevel() && Configs.CONFIG.getBool("anvil.allow-combining-unsafe")) && ((rightLevel > enchantment.getMaxLevel() && Configs.CONFIG.getBool("anvil.allow-combining-unsafe"))
|| ((rightLevel + 1) <= enchantment.getMaxLevel() || ((rightLevel + 1) <= enchantment.getMaxLevel() || Configs.CONFIG.getBool(ALLOW_UNSAFE_KEY)))) {
|| Configs.CONFIG.getBool(ALLOW_UNSAFE_KEY))) {
level++; level++;
} }
rightEnchants.remove(enchantment); rightEnchants.remove(enchantment);