From 6409841cca11e62376ccb78891eb2b7588393d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=9E=E5=BA=90?= <109708109+CiLuQwQ@users.noreply.github.com> Date: Mon, 2 Sep 2024 01:51:53 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#3138:=20HMCL=20=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=9C=B0=E5=B0=86=20Authlib=20=E6=97=A5=E5=BF=97=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E4=B8=BA=20ERROR=20(#3142)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Close#3138 * 恢复gradle-wrapper.properties * 恢复gradle-wrapper.properties * 添加空格 * 修复控制台输出的日志 * Merge if statement * update * update --------- Co-authored-by: CiLuQwQ Co-authored-by: burningtnt Co-authored-by: Glavo --- HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java b/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java index 33fc9ed4c..750acba80 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/game/LauncherHelper.java @@ -804,7 +804,7 @@ public final class LauncherHelper { System.out.println(filteredLog); Log4jLevel level; - if (isErrorStream) + if (isErrorStream && !filteredLog.startsWith("[authlib-injector]")) level = Log4jLevel.ERROR; else level = showLogs ? Optional.ofNullable(Log4jLevel.guessLevel(filteredLog)).orElse(Log4jLevel.INFO) : null;