Fixed mobile bug where card-gen decks disabled but still tries to load standard card-based decks

This commit is contained in:
austinio7116
2018-02-27 06:40:59 +00:00
committed by maustin
parent 80a2d902c0
commit 1b1eb6636d

View File

@@ -621,7 +621,10 @@ public class FDeckChooser extends FScreen {
break; break;
case STANDARD_CARDGEN_DECK: case STANDARD_CARDGEN_DECK:
maxSelections = 1; maxSelections = 1;
pool= new ArrayList<>();
if(FModel.isdeckGenMatrixLoaded()) {
pool = CardThemedDeckGenerator.getMatrixDecks(FModel.getFormats().getStandard(), isAi); pool = CardThemedDeckGenerator.getMatrixDecks(FModel.getFormats().getStandard(), isAi);
}
config = ItemManagerConfig.STRING_ONLY; config = ItemManagerConfig.STRING_ONLY;
break; break;
case MODERN_CARDGEN_DECK: case MODERN_CARDGEN_DECK: