add check on selectedDeckType

This commit is contained in:
Anthony Calosa
2022-05-07 10:00:18 +08:00
committed by GitHub
parent 88adf6a99e
commit a16fbf15bc

View File

@@ -199,7 +199,7 @@ public class FDeckChooser extends FScreen {
}
else {
int size = 0;
if (isAi) {
if (isAi && !isGeneratedDeck(selectedDeckType)) {
AIDecks = lstDecks.getPool().toFlatList().parallelStream().filter(deckProxy -> deckProxy.getAI().inMainDeck == 0).collect(Collectors.toList());
size = AIDecks.size();
}