Custom Editions are now included in GameFormat when checking for sets

This commit is contained in:
leriomaggio
2021-05-31 10:44:48 +01:00
parent 1b25438fca
commit 43a62813e6

View File

@@ -101,9 +101,10 @@ public class GameFormat implements Comparable<GameFormat> {
this.effectiveDate = effectiveDate;
if(sets != null) {
StaticData data = StaticData.instance();
Set<String> parsedSets = new HashSet<>();
for (String set : sets) {
if (StaticData.instance().getEditions().get(set) == null) {
if ((data.getEditions().get(set) == null) && (data.getCustomEditions().get(set) == null)) {
System.out.println("Set " + set + " in format " + fName + " does not match any valid editions!");
continue;
}