From 256f72dd08ea619901ef330764c63a4ba05a99bf Mon Sep 17 00:00:00 2001 From: Glavo Date: Sun, 2 Jan 2022 14:25:46 +0800 Subject: [PATCH] Fix 'DefaultGameRepository::getVersionJar' --- .../java/org/jackhuang/hmcl/game/DefaultGameRepository.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java index e08c9f141..67fc5ef32 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java @@ -136,10 +136,6 @@ public class DefaultGameRepository implements GameRepository { @Override public File getVersionJar(Version version) { Version v = version.resolve(this); - File currentVersionJar = new File(getVersionRoot(v.getId()), v.getId() + ".jar"); - if (currentVersionJar.exists()) { - return currentVersionJar; - } String id = Optional.ofNullable(v.getJar()).orElse(v.getId()); return new File(getVersionRoot(id), id + ".jar"); }