mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +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;
|
this.effectiveDate = effectiveDate;
|
||||||
|
|
||||||
if(sets != null) {
|
if(sets != null) {
|
||||||
|
StaticData data = StaticData.instance();
|
||||||
Set<String> parsedSets = new HashSet<>();
|
Set<String> parsedSets = new HashSet<>();
|
||||||
for (String set : sets) {
|
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!");
|
System.out.println("Set " + set + " in format " + fName + " does not match any valid editions!");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user