mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed anvils not working
This commit is contained in:
parent
52e5e81eb3
commit
9a400f0dfa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user