diff --git a/Mage.Client/src/main/java/mage/client/table/TablesPane.java b/Mage.Client/src/main/java/mage/client/table/TablesPane.java index 43ef146bce..5ba7652479 100644 --- a/Mage.Client/src/main/java/mage/client/table/TablesPane.java +++ b/Mage.Client/src/main/java/mage/client/table/TablesPane.java @@ -38,8 +38,6 @@ import java.util.Map; import java.util.UUID; import javax.swing.JComponent; -import javax.swing.event.InternalFrameEvent; -import javax.swing.event.InternalFrameListener; import mage.client.MageFrame; import mage.client.MagePane; diff --git a/Mage.Client/src/main/java/mage/client/table/TablesPanel.java b/Mage.Client/src/main/java/mage/client/table/TablesPanel.java index d9916e2e37..6ed44234a0 100644 --- a/Mage.Client/src/main/java/mage/client/table/TablesPanel.java +++ b/Mage.Client/src/main/java/mage/client/table/TablesPanel.java @@ -473,8 +473,7 @@ class UpdateTablesTask extends SwingWorker> { @Override protected Void doInBackground() throws Exception { while (!isCancelled()) { - if (MageFrame.getDesktop().getSelectedFrame() instanceof TablesPane) - this.publish(session.getTables(roomId)); + this.publish(session.getTables(roomId)); Thread.sleep(1000); } return null; diff --git a/pom.xml b/pom.xml index 6cad0d59f9..ba09fa1010 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,7 @@ Mage.Plugins Mage.Server.Plugins Mage.Server.Console + Mage.Tests