Added 'none' option to remove all conflicts for a vanilla enchantment

This commit is contained in:
Auxilor 2021-09-06 12:51:13 +01:00
parent e8eaec33ca
commit d6d7b567aa
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,8 @@ public class VanillaEnchantments {
keys.add(NamespacedKey.minecraft(split[i]));
}
keys.removeIf(key -> key.getKey().equalsIgnoreCase("none"));
return keys;
}
));

View File

@ -23,5 +23,9 @@ max-levels: []
# conflicts:
# - "mending:efficiency:sharpness"
#
# If you want to remove all conflicts, set the list to 'none':
# conflicts:
# - "mending:none"
#
# Beware that this will *override* conflicts, not add to them.
conflicts: []