Skip to content

Commit f959533

Browse files
committed
Ignore some random server file causing the installer to rerun
1 parent e6410e8 commit f959533

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
org.gradle.daemon = false
33

4-
fw_version = mmc2
4+
fw_version = mmc3

src/main/java/io/github/zekerzhayard/forgewrapper/installer/detector/IFileDetector.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ default boolean checkExtraFiles(String forgeFullVersion) {
181181
for (Map.Entry<String, Path> entry : libsMap.entrySet()) {
182182
String sha1 = "";
183183
String entryKey = entry.getKey();
184+
// NOTE: only used on servers, it's busted
185+
if(entryKey.equals("MC_UNPACKED")) {
186+
continue;
187+
}
184188
/**
185189
* NOTE: workaround for https://github.com/MultiMC/Launcher/issues/4400
186190
* We ignore the hash of the client file and instead just rely on it being 'correct, maybe' if it's present at all
@@ -196,7 +200,7 @@ default boolean checkExtraFiles(String forgeFullVersion) {
196200
}
197201
}
198202
return checked;
199-
}
203+
}
200204
// Skip installing process if installer profile doesn't exist.
201205
return true;
202206
}

0 commit comments

Comments
 (0)