mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
Make it clearer where the simulater is loading decks from (#3088)
This commit is contained in:
@@ -357,7 +357,13 @@ public class SimulateMatch {
|
|||||||
if (dotpos > 0 && dotpos == deckname.length() - 4) {
|
if (dotpos > 0 && dotpos == deckname.length() - 4) {
|
||||||
String baseDir = type.equals(GameType.Commander) ?
|
String baseDir = type.equals(GameType.Commander) ?
|
||||||
ForgeConstants.DECK_COMMANDER_DIR : ForgeConstants.DECK_CONSTRUCTED_DIR;
|
ForgeConstants.DECK_COMMANDER_DIR : ForgeConstants.DECK_CONSTRUCTED_DIR;
|
||||||
return DeckSerializer.fromFile(new File(baseDir + deckname));
|
|
||||||
|
File f = new File(baseDir + deckname);
|
||||||
|
if (!f.exists()) {
|
||||||
|
System.out.println("No deck found in " + baseDir);
|
||||||
|
}
|
||||||
|
|
||||||
|
return DeckSerializer.fromFile(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
IStorage<Deck> deckStore = null;
|
IStorage<Deck> deckStore = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user