mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
fix draft decks not showing up in quest start combobox
This commit is contained in:
@@ -41,8 +41,6 @@ public enum CSubmenuQuestData implements ICDoc {
|
|||||||
/** */
|
/** */
|
||||||
SINGLETON_INSTANCE;
|
SINGLETON_INSTANCE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private final Map<String, QuestData> arrQuests = new HashMap<String, QuestData>();
|
private final Map<String, QuestData> arrQuests = new HashMap<String, QuestData>();
|
||||||
|
|
||||||
private final VSubmenuQuestData view = VSubmenuQuestData.SINGLETON_INSTANCE;
|
private final VSubmenuQuestData view = VSubmenuQuestData.SINGLETON_INSTANCE;
|
||||||
|
|||||||
@@ -138,10 +138,8 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
|
|||||||
cbxCustomDeck.removeAllItems();
|
cbxCustomDeck.removeAllItems();
|
||||||
CardCollections decks = Singletons.getModel().getDecks();
|
CardCollections decks = Singletons.getModel().getDecks();
|
||||||
IStorage<DeckGroup> storage = newVal == StartingPoolType.SealedDeck ? decks.getSealed() : decks.getDraft();
|
IStorage<DeckGroup> storage = newVal == StartingPoolType.SealedDeck ? decks.getSealed() : decks.getDraft();
|
||||||
if (newVal == StartingPoolType.SealedDeck) {
|
for (DeckGroup d : storage) {
|
||||||
for (DeckGroup d : storage) {
|
cbxCustomDeck.addItem(d.getHumanDeck());
|
||||||
cbxCustomDeck.addItem(d.getHumanDeck());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user