Thanks to gonglinyuan

This commit is contained in:
huangyuhui
2016-02-18 14:24:00 +08:00
parent afecb87c6d
commit 61a179ba67
24 changed files with 177 additions and 70 deletions

View File

@@ -51,7 +51,11 @@ public class HelloMinecraftLookAndFeel extends SynthLookAndFeel {
load(new ByteArrayInputStream(s.getBytes("UTF-8")), HelloMinecraftLookAndFeel.class);
} catch (Throwable ex) {
HMCLog.err("This fucking exception should not happen. Retry backup solution.", ex);
load(HelloMinecraftLookAndFeel.class.getResourceAsStream("/org/jackhuang/hellominecraft/lookandfeel/synth_backup.xml"), HelloMinecraftLookAndFeel.class);
try {
load(HelloMinecraftLookAndFeel.class.getResourceAsStream("/org/jackhuang/hellominecraft/lookandfeel/synth_backup.xml"), HelloMinecraftLookAndFeel.class);
} catch (Throwable e) {
HMCLog.err("User fault", e);
}
}
}