mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Assigning lstDecks.getGameType().getDeckFormat() to a variable so we don't have to write it out each conditional
This commit is contained in:
@@ -131,9 +131,10 @@ public class FDeckChooser extends JPanel implements IDecksComboBoxListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateCustom() {
|
private void updateCustom() {
|
||||||
if(lstDecks.getGameType().getDeckFormat().equals(DeckFormat.Commander)){
|
DeckFormat deckFormat = lstDecks.getGameType().getDeckFormat();
|
||||||
|
if(deckFormat.equals(DeckFormat.Commander)){
|
||||||
updateDecks(DeckProxy.getAllCommanderDecks(), ItemManagerConfig.COMMANDER_DECKS);
|
updateDecks(DeckProxy.getAllCommanderDecks(), ItemManagerConfig.COMMANDER_DECKS);
|
||||||
}else if(lstDecks.getGameType().getDeckFormat().equals(DeckFormat.TinyLeaders)){
|
}else if(deckFormat.equals(DeckFormat.TinyLeaders)){
|
||||||
updateDecks(DeckProxy.getAllTinyLeadersDecks(), ItemManagerConfig.COMMANDER_DECKS);
|
updateDecks(DeckProxy.getAllTinyLeadersDecks(), ItemManagerConfig.COMMANDER_DECKS);
|
||||||
}else {
|
}else {
|
||||||
updateDecks(DeckProxy.getAllConstructedDecks(), ItemManagerConfig.CONSTRUCTED_DECKS);
|
updateDecks(DeckProxy.getAllConstructedDecks(), ItemManagerConfig.CONSTRUCTED_DECKS);
|
||||||
|
|||||||
Reference in New Issue
Block a user