From c76b2b15541a3fa36b270a8cd382e164836429b9 Mon Sep 17 00:00:00 2001 From: drdev Date: Thu, 13 Nov 2014 00:55:15 +0000 Subject: [PATCH] Comment out unhelpful gui errors (at least at this time) --- forge-gui-desktop/src/main/java/forge/GuiDesktop.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/forge-gui-desktop/src/main/java/forge/GuiDesktop.java b/forge-gui-desktop/src/main/java/forge/GuiDesktop.java index daa4bce2b2d..40acb4d1a54 100644 --- a/forge-gui-desktop/src/main/java/forge/GuiDesktop.java +++ b/forge-gui-desktop/src/main/java/forge/GuiDesktop.java @@ -166,21 +166,21 @@ public class GuiDesktop implements IGuiBase { @Override public List getChoices(final String message, final int min, final int max, final Collection choices, final T selected, final Function display) { - if ((choices != null && !choices.isEmpty() && choices.iterator().next() instanceof GameObject) || selected instanceof GameObject) { + /*if ((choices != null && !choices.isEmpty() && choices.iterator().next() instanceof GameObject) || selected instanceof GameObject) { System.err.println("Warning: GameObject passed to GUI! Printing stack trace."); Thread.dumpStack(); - } + }*/ return GuiChoose.getChoices(message, min, max, choices, selected, display); } @Override public List order(final String title, final String top, final int remainingObjectsMin, final int remainingObjectsMax, final List sourceChoices, final List destChoices, final CardView referenceCard, final boolean sideboardingMode) { - if ((sourceChoices != null && !sourceChoices.isEmpty() && sourceChoices.iterator().next() instanceof GameObject) + /*if ((sourceChoices != null && !sourceChoices.isEmpty() && sourceChoices.iterator().next() instanceof GameObject) || (destChoices != null && !destChoices.isEmpty() && destChoices.iterator().next() instanceof GameObject)) { System.err.println("Warning: GameObject passed to GUI! Printing stack trace."); Thread.dumpStack(); - } + }*/ return GuiChoose.order(title, top, remainingObjectsMin, remainingObjectsMax, sourceChoices, destChoices, referenceCard, sideboardingMode); }