mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
added check that disabled deck checking if developer mode is enabled
This commit is contained in:
@@ -9,6 +9,7 @@ import javax.swing.SwingWorker;
|
||||
|
||||
import forge.Command;
|
||||
import forge.Singletons;
|
||||
import forge.Constant.Preferences;
|
||||
import forge.control.Lobby;
|
||||
import forge.deck.Deck;
|
||||
import forge.game.GameType;
|
||||
@@ -97,10 +98,12 @@ public enum CSubmenuConstructed implements ICDoc {
|
||||
private void startGame() {
|
||||
Deck humanDeck = VSubmenuConstructed.SINGLETON_INSTANCE.getDcHuman().getDeck();
|
||||
|
||||
String errorMessage = GameType.Constructed.getDeckConformanceProblem(humanDeck);
|
||||
if ( null != errorMessage ) {
|
||||
JOptionPane.showMessageDialog(null, "Your deck " + errorMessage, "Invalid deck", JOptionPane.ERROR_MESSAGE);
|
||||
return;
|
||||
if (!Preferences.DEV_MODE) {
|
||||
String errorMessage = GameType.Constructed.getDeckConformanceProblem(humanDeck);
|
||||
if (null != errorMessage) {
|
||||
JOptionPane.showMessageDialog(null, "Your deck " + errorMessage, "Invalid deck", JOptionPane.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
|
||||
Reference in New Issue
Block a user