Merge pull request #40

Fix conflict enchantment
This commit is contained in:
Auxilor 2021-03-11 08:43:23 +00:00 committed by GitHub
commit 8ca3f4f0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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