fix hmcsm

This commit is contained in:
huanghongxun 2015-12-17 22:25:03 +08:00
parent 7174e117e3
commit b1c6c3549f

View File

@ -21,7 +21,6 @@ import java.awt.Font;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.StringWriter; import java.io.StringWriter;
import java.text.ParseException; import java.text.ParseException;
import javax.swing.SwingUtilities;
import javax.swing.UIManager; import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException; import javax.swing.UnsupportedLookAndFeelException;
import org.jackhuang.hellominecraft.HMCLog; import org.jackhuang.hellominecraft.HMCLog;
@ -58,8 +57,7 @@ public class Main {
} catch (ParseException | UnsupportedLookAndFeelException ex) { } catch (ParseException | UnsupportedLookAndFeelException ex) {
HMCLog.warn("Failed to set look and feel", ex); HMCLog.warn("Failed to set look and feel", ex);
} }
UPDATE_CHECKER.outdated.register(new AppDataUpgrader()); UPDATE_CHECKER.process(false).subscribeOn(Schedulers.newThread()).subscribe(t -> MessageBox.Show("发现更新!" + t.version));
UPDATE_CHECKER.process(false).subscribeOn(Schedulers.newThread()).subscribe(t -> MessageBox.Show("发现更新!"));
new MainWindow().setVisible(true); new MainWindow().setVisible(true);
} catch (Throwable t) { } catch (Throwable t) {
HMCLog.err("There's something wrong when running server holder.", t); HMCLog.err("There's something wrong when running server holder.", t);