From 78b8d37891111d69fe1605e077eda7d990f9f061 Mon Sep 17 00:00:00 2001 From: Glavo Date: Mon, 10 Aug 2026 21:17:58 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#6627:=20=E4=BF=AE=E5=A4=8D=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=96=B0=E5=AE=9E=E4=BE=8B=E6=97=B6=E6=9C=AA=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E5=86=99=E5=85=A5=20patches=20=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#6642)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jackhuang/hmcl/download/MaintainTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MaintainTask.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MaintainTask.java index 32a0c1cfe1..58030f6bef 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MaintainTask.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MaintainTask.java @@ -95,7 +95,7 @@ public class MaintainTask extends Task { if (!manifest.isResolvedPreservingPatches()) throw new IllegalArgumentException("MaintainTask requires independent game version"); GameInstanceManifest newVersion = maintain(repository, manifest.resolve(repository)); - return newVersion.patches() == null ? newVersion : newVersion.withPatches(manifest.getPatches()); + return manifest.patches() == null ? newVersion : newVersion.withPatches(manifest.getPatches()); } private static GameInstanceManifest maintainGameWithLaunchWrapper(GameRepository repository, GameInstanceManifest manifest, boolean reorderTweakClass) {