mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-29 16:15:17 +01:00
Fixed combining levels
This commit is contained in:
parent
f69d6cef18
commit
ca09e91f71
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user