mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 03:16:35 -04:00
fix hmcsm
This commit is contained in:
parent
7174e117e3
commit
b1c6c3549f
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user