mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fix for broken variants with new android multiplayer code
This commit is contained in:
@@ -815,6 +815,10 @@ public class FDeckChooser extends FScreen {
|
||||
/*if(selectedDeckType.equals(DeckType.STANDARD_CARDGEN_DECK)){
|
||||
return DeckgenUtil.buildCardGenDeck(lstDecks.getSelectedItem().getName());
|
||||
}*/
|
||||
//ensure a deck is selected first
|
||||
if(lstDecks.getSelectedIndex() == -1){
|
||||
lstDecks.setSelectedIndex(0);
|
||||
}
|
||||
DeckProxy proxy = lstDecks.getSelectedItem();
|
||||
if (proxy == null) { return null; }
|
||||
return proxy.getDeck();
|
||||
|
||||
Reference in New Issue
Block a user