rename configuration property IGNORE_ENCHANT_ATTRIBUTE_FOR_SIMILARITY to EXCLUDED_ITEM_ATTRIBUTES

This commit is contained in:
v_manijashvili 2023-11-28 16:25:58 +04:00
parent e89cd04725
commit b274f673e2
2 changed files with 4 additions and 4 deletions

View File

@ -140,8 +140,8 @@ public class MaterialUtil {
Map<String, Object> oneSerMeta = new HashMap<>(oneMeta.serialize());
Map<String, Object> twoSerMeta = new HashMap<>(twoMeta.serialize());
if (!Properties.IGNORE_ENCHANT_ATTRIBUTE_FOR_SIMILARITY.isEmpty()) {
for (String ignoreKey : Properties.IGNORE_ENCHANT_ATTRIBUTE_FOR_SIMILARITY) {
if (!Properties.EXCLUDED_ITEM_ATTRIBUTES.isEmpty()) {
for (String ignoreKey : Properties.EXCLUDED_ITEM_ATTRIBUTES) {
oneSerMeta.remove(ignoreKey);
twoSerMeta.remove(ignoreKey);
}

View File

@ -339,8 +339,8 @@ public class Properties {
public static boolean USE_STOCK_COUNTER = false;
@PrecededBySpace
@ConfigurationComment("Ignore enchantment attribute for similarity")
@ConfigurationComment("Exclude these enchantments from the similarity check when comparing items")
@Parser("StringSet")
public static Set<String> IGNORE_ENCHANT_ATTRIBUTE_FOR_SIMILARITY = new LinkedHashSet<>();
public static Set<String> EXCLUDED_ITEM_ATTRIBUTES = new LinkedHashSet<>();
}