Merge remote-tracking branch 'origin/master' into master

This commit is contained in:
Auxilor 2021-03-11 17:38:06 +00:00
commit 9560b446eb

View File

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