Compare commits
2 Commits
9bd5081616
...
9b204bd3ec
Author | SHA1 | Date |
---|---|---|
valeri manijashvili | 9b204bd3ec | |
v_manijashvili | b274f673e2 |
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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<>();
|
||||
|
||||
}
|
Loading…
Reference in New Issue