Fix Net Decks in Deck Editor

This commit is contained in:
drdev
2015-04-19 22:28:11 +00:00
parent 8b99328360
commit 75ba19d5af

View File

@@ -47,6 +47,7 @@ public class NetDeckCategory extends StorageBase<Deck> {
switch (gameType) {
case Constructed:
case Gauntlet:
case DeckEditorTest:
if (constructed == null) {
constructed = loadCategories(ForgeConstants.NET_DECKS_LIST_FILE);
}
@@ -79,7 +80,7 @@ public class NetDeckCategory extends StorageBase<Deck> {
return category;
}
final NetDeckCategory c= SGuiChoose.oneOrNone("Select a Net Deck category", categories.values());
final NetDeckCategory c = SGuiChoose.oneOrNone("Select a Net Deck category", categories.values());
if (c == null) { return null; }
if (c.map.isEmpty()) { //only download decks once per session