Fix conflict enchantment

This commit is contained in:
kireevm96 2021-03-11 11:09:21 +03:00
parent 6b317d678c
commit 6b39894089

View File

@ -177,7 +177,11 @@ public class VillagerListeners extends PluginDependent implements Listener {
if (enchant.conflictsWith(enchantment)) {
anyConflicts.set(true);
}
if (enchantment.conflictsWith(enchant)) {
anyConflicts.set(true);
}
EcoEnchant ecoEnchant = EcoEnchants.getFromEnchantment(enchant);
if (enchantment.getType().equals(ecoEnchant.getType()) && ecoEnchant.getType().isSingular()) {