From 8f642df60e77d8df51df46fec88ba92219eed846 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 2 Nov 2014 12:09:52 +0100 Subject: [PATCH] Added workaround for "Comparison method violates its general contract!" message of table sort. --- Mage.Server/src/main/java/mage/server/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage.Server/src/main/java/mage/server/Main.java b/Mage.Server/src/main/java/mage/server/Main.java index 46b61e6b23..be49f9bd5d 100644 --- a/Mage.Server/src/main/java/mage/server/Main.java +++ b/Mage.Server/src/main/java/mage/server/Main.java @@ -90,7 +90,7 @@ public class Main { * @param args the command line arguments */ public static void main(String[] args) { - + System.setProperty("java.util.Arrays.useLegacyMergeSort", "true"); logger.info("Starting MAGE server version " + version); logger.info("Logging level: " + logger.getEffectiveLevel()); @@ -266,7 +266,7 @@ public class Main { public void setInvoker(ServerInvoker invoker) { ((BisocketServerInvoker) invoker).setSecondaryBindPort(ConfigSettings.getInstance().getSecondaryBindPort()); ((BisocketServerInvoker) invoker).setBacklog(ConfigSettings.getInstance().getBacklogSize()); - ((BisocketServerInvoker) invoker).setNumAcceptThreads(ConfigSettings.getInstance().getNumAcceptThreads()); + ((BisocketServerInvoker) invoker).setNumAcceptThreads(ConfigSettings.getInstance().getNumAcceptThreads()); } @Override