mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Code cleanup.
This commit is contained in:
@@ -97,8 +97,7 @@ public enum CSubmenuQuestData implements ICDoc {
|
|||||||
|
|
||||||
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||||
userDeck = open.getSelectedFile();
|
userDeck = open.getSelectedFile();
|
||||||
if (userDeck.getPath().toLowerCase().contains("draft") || userDeck.getPath().toLowerCase().contains("sealed")) {
|
if (!(userDeck.getPath().toLowerCase().contains("draft") || userDeck.getPath().toLowerCase().contains("sealed"))) {
|
||||||
} else {
|
|
||||||
JOptionPane.showMessageDialog(null, "Only Sealed Deck and Draft decks are allowed as a starting deck",
|
JOptionPane.showMessageDialog(null, "Only Sealed Deck and Draft decks are allowed as a starting deck",
|
||||||
"Illegal starting deck", JOptionPane.ERROR_MESSAGE);
|
"Illegal starting deck", JOptionPane.ERROR_MESSAGE);
|
||||||
userDeck = null;
|
userDeck = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user