From 43a62813e690bfea5cd830ff680960b48c33da39 Mon Sep 17 00:00:00 2001 From: leriomaggio Date: Mon, 31 May 2021 10:44:48 +0100 Subject: [PATCH] Custom Editions are now included in GameFormat when checking for sets --- forge-game/src/main/java/forge/game/GameFormat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/GameFormat.java b/forge-game/src/main/java/forge/game/GameFormat.java index 026b83ea942..22eb3f1abb9 100644 --- a/forge-game/src/main/java/forge/game/GameFormat.java +++ b/forge-game/src/main/java/forge/game/GameFormat.java @@ -101,9 +101,10 @@ public class GameFormat implements Comparable { this.effectiveDate = effectiveDate; if(sets != null) { + StaticData data = StaticData.instance(); Set 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; }