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) {
level = rightLevel;
} else if (rightLevel == level
&& (rightLevel > enchantment.getMaxLevel() && Configs.CONFIG.getBool("anvil.allow-combining-unsafe"))
|| ((rightLevel + 1) <= enchantment.getMaxLevel()
|| Configs.CONFIG.getBool(ALLOW_UNSAFE_KEY))) {
&& ((rightLevel > enchantment.getMaxLevel() && Configs.CONFIG.getBool("anvil.allow-combining-unsafe"))
|| ((rightLevel + 1) <= enchantment.getMaxLevel() || Configs.CONFIG.getBool(ALLOW_UNSAFE_KEY)))) {
level++;
}
rightEnchants.remove(enchantment);