Compare commits

...

2 Commits

Author SHA1 Message Date
valeri manijashvili 9b204bd3ec
Merge b274f673e2 into 2388da62a5 2023-11-28 12:26:05 +00:00
v_manijashvili b274f673e2 rename configuration property IGNORE_ENCHANT_ATTRIBUTE_FOR_SIMILARITY to EXCLUDED_ITEM_ATTRIBUTES 2023-11-28 16:25:58 +04:00
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<>();
}