mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Custom Editions are now included in GameFormat when checking for sets
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user