mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Fix Net Decks in Deck Editor
This commit is contained in:
@@ -47,6 +47,7 @@ public class NetDeckCategory extends StorageBase<Deck> {
|
|||||||
switch (gameType) {
|
switch (gameType) {
|
||||||
case Constructed:
|
case Constructed:
|
||||||
case Gauntlet:
|
case Gauntlet:
|
||||||
|
case DeckEditorTest:
|
||||||
if (constructed == null) {
|
if (constructed == null) {
|
||||||
constructed = loadCategories(ForgeConstants.NET_DECKS_LIST_FILE);
|
constructed = loadCategories(ForgeConstants.NET_DECKS_LIST_FILE);
|
||||||
}
|
}
|
||||||
@@ -79,7 +80,7 @@ public class NetDeckCategory extends StorageBase<Deck> {
|
|||||||
return category;
|
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 == null) { return null; }
|
||||||
|
|
||||||
if (c.map.isEmpty()) { //only download decks once per session
|
if (c.map.isEmpty()) { //only download decks once per session
|
||||||
|
|||||||
Reference in New Issue
Block a user