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) {
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user