mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 14:56:05 -04:00
Ignore some exceptions
This commit is contained in:
parent
03383510ef
commit
a1e115ea6b
@ -191,14 +191,17 @@ public final class Decorator extends StackPane implements TaskExecutorDialogWiza
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void loadBackground() {
|
private void loadBackground() {
|
||||||
Image background;
|
try {
|
||||||
|
Image background;
|
||||||
|
|
||||||
if (Settings.INSTANCE.getBackgroundImageType() == EnumBackgroundImage.DEFAULT)
|
if (Settings.INSTANCE.getBackgroundImageType() == EnumBackgroundImage.DEFAULT)
|
||||||
background = searchBackgroundImage(new Image("/assets/img/background.jpg"), "");
|
background = searchBackgroundImage(new Image("/assets/img/background.jpg"), "");
|
||||||
else
|
else
|
||||||
background = searchBackgroundImage(new Image("/assets/img/background.jpg"), Settings.INSTANCE.getBackgroundImage());
|
background = searchBackgroundImage(new Image("/assets/img/background.jpg"), Settings.INSTANCE.getBackgroundImage());
|
||||||
|
|
||||||
drawerWrapper.setBackground(new Background(new BackgroundImage(background, BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, new BackgroundSize(800, 480, false, false, true, true))));
|
drawerWrapper.setBackground(new Background(new BackgroundImage(background, BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, new BackgroundSize(800, 480, false, false, true, true))));
|
||||||
|
} catch (IllegalArgumentException ignore) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Image searchBackgroundImage(Image def, String customPath) {
|
private static Image searchBackgroundImage(Image def, String customPath) {
|
||||||
|
@ -42,6 +42,8 @@ public class CrashReporter implements Thread.UncaughtExceptionHandler {
|
|||||||
put("java.lang.NoClassDefFoundError", Launcher.i18n("crash.NoClassDefFound"));
|
put("java.lang.NoClassDefFoundError", Launcher.i18n("crash.NoClassDefFound"));
|
||||||
put("java.lang.VerifyError", Launcher.i18n("crash.NoClassDefFound"));
|
put("java.lang.VerifyError", Launcher.i18n("crash.NoClassDefFound"));
|
||||||
put("java.lang.NoSuchMethodError", Launcher.i18n("crash.NoClassDefFound"));
|
put("java.lang.NoSuchMethodError", Launcher.i18n("crash.NoClassDefFound"));
|
||||||
|
put("java.lang.NoSuchFieldError", Launcher.i18n("crash.NoClassDefFound"));
|
||||||
|
put("netscape.javascript.JSException", Launcher.i18n("crash.NoClassDefFound"));
|
||||||
put("java.lang.IncompatibleClassChangeError", Launcher.i18n("crash.NoClassDefFound"));
|
put("java.lang.IncompatibleClassChangeError", Launcher.i18n("crash.NoClassDefFound"));
|
||||||
put("java.lang.ClassFormatError", Launcher.i18n("crash.NoClassDefFound"));
|
put("java.lang.ClassFormatError", Launcher.i18n("crash.NoClassDefFound"));
|
||||||
put("java.lang.OutOfMemoryError", "FUCKING MEMORY LIMIT!");
|
put("java.lang.OutOfMemoryError", "FUCKING MEMORY LIMIT!");
|
||||||
|
@ -93,7 +93,7 @@ color.red=红色
|
|||||||
color.recent=推荐
|
color.recent=推荐
|
||||||
color.custom=自定义颜色
|
color.custom=自定义颜色
|
||||||
|
|
||||||
crash.NoClassDefFound=请确认HMCL本体是否完整
|
crash.NoClassDefFound=请确认HMCL本体是否完整,或更新您的Java。
|
||||||
crash.advice.ClassNotFoundException=Minecraft不完整或Mod冲突,如果有未能下载的文件请下载成功后重试或是客户端损坏请重试请重新制作客户端或下载整合包解决问题,另可尝试游戏设置->(版本)管理->删除库文件解决问题
|
crash.advice.ClassNotFoundException=Minecraft不完整或Mod冲突,如果有未能下载的文件请下载成功后重试或是客户端损坏请重试请重新制作客户端或下载整合包解决问题,另可尝试游戏设置->(版本)管理->删除库文件解决问题
|
||||||
crash.advice.ConcurrentModificationException=这可能是因为您的Java版本高于Java 1.8.0_11导致的,可以尝试卸载Java8安装Java7。
|
crash.advice.ConcurrentModificationException=这可能是因为您的Java版本高于Java 1.8.0_11导致的,可以尝试卸载Java8安装Java7。
|
||||||
crash.advice.LWJGLException=您的电脑不正常,可能需要使用驱动精灵或其他安装器更新显卡驱动。
|
crash.advice.LWJGLException=您的电脑不正常,可能需要使用驱动精灵或其他安装器更新显卡驱动。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user