Skip to content

Commit a3f7a23

Browse files
authored
Fix #4597: 绕过 OptiFine HD U G6 pre1 与其他模组 Fingerprint 冲突的问题 (#4946)
1 parent 9dd8084 commit a3f7a23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

HMCLCore/src/main/java/org/jackhuang/hmcl/mod/curse/CurseForgeRemoteModRepository.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ public Optional<RemoteMod.Version> getRemoteVersionByLocalFile(LocalModFile loca
169169
}
170170

171171
long hash = Integer.toUnsignedLong(MurmurHash2.hash32(baos.toByteArray(), baos.size(), 1));
172+
if (hash == 811513880) { // Workaround for https://github.com/HMCL-dev/HMCL/issues/4597
173+
return Optional.empty();
174+
}
172175

173176
Response<FingerprintMatchesResult> response = withApiKey(HttpRequest.POST(PREFIX + "/v1/fingerprints/432"))
174177
.json(mapOf(pair("fingerprints", Collections.singletonList(hash))))

0 commit comments

Comments
 (0)