Fixed anvils not working

This commit is contained in:
Auxilor 2020-09-06 20:59:05 +01:00
parent 52e5e81eb3
commit 9a400f0dfa

View File

@ -42,7 +42,7 @@ public class AnvilMerge {
if(left.getEnchantments().containsKey(EcoEnchants.PERMANENCE_CURSE)) return new Pair<>(null, null);
if(!EnchantmentTarget.ALL.contains(left.getType()) || right == null || EnchantmentTarget.ALL.contains(right.getType())) {
if(!EnchantmentTarget.ALL.contains(left.getType()) || right == null || !EnchantmentTarget.ALL.contains(right.getType())) {
ItemStack out = left.clone();
ItemMeta outMeta = out.getItemMeta();
outMeta.setDisplayName(name);