mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
removed previously introduced workaround for lowercase comparison
This commit is contained in:
@@ -379,13 +379,13 @@ public final class CardEdition implements Comparable<CardEdition> {
|
|||||||
cardsInSetLookupMap = new TreeMap<>();
|
cardsInSetLookupMap = new TreeMap<>();
|
||||||
List<CardInSet> cardsInSet = this.getAllCardsInSet();
|
List<CardInSet> cardsInSet = this.getAllCardsInSet();
|
||||||
for (CardInSet cis : cardsInSet){
|
for (CardInSet cis : cardsInSet){
|
||||||
String key = cis.name.toLowerCase();
|
String key = cis.name;
|
||||||
List<CardInSet> versions = cardsInSetLookupMap.getOrDefault(key, new ArrayList<>());
|
List<CardInSet> versions = cardsInSetLookupMap.getOrDefault(key, new ArrayList<>());
|
||||||
versions.add(cis);
|
versions.add(cis);
|
||||||
cardsInSetLookupMap.put(key, versions);
|
cardsInSetLookupMap.put(key, versions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this.cardsInSetLookupMap.getOrDefault(cardName.toLowerCase(), new ArrayList<>());
|
return this.cardsInSetLookupMap.getOrDefault(cardName, new ArrayList<>());
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isModern() { return getDate().after(parseDate("2003-07-27")); } //8ED and above are modern except some promo cards and others
|
public boolean isModern() { return getDate().after(parseDate("2003-07-27")); } //8ED and above are modern except some promo cards and others
|
||||||
|
|||||||
Reference in New Issue
Block a user