Fix #4597: 绕过 OptiFine HD U G6 pre1 与其他模组 Fingerprint 冲突的问题 (#4946)

This commit is contained in:
Burning_TNT
2025-12-07 21:12:08 +08:00
committed by GitHub
parent 9dd8084be2
commit a3f7a230e7

View File

@@ -169,6 +169,9 @@ public final class CurseForgeRemoteModRepository implements RemoteModRepository
} }
long hash = Integer.toUnsignedLong(MurmurHash2.hash32(baos.toByteArray(), baos.size(), 1)); long hash = Integer.toUnsignedLong(MurmurHash2.hash32(baos.toByteArray(), baos.size(), 1));
if (hash == 811513880) { // Workaround for https://github.com/HMCL-dev/HMCL/issues/4597
return Optional.empty();
}
Response<FingerprintMatchesResult> response = withApiKey(HttpRequest.POST(PREFIX + "/v1/fingerprints/432")) Response<FingerprintMatchesResult> response = withApiKey(HttpRequest.POST(PREFIX + "/v1/fingerprints/432"))
.json(mapOf(pair("fingerprints", Collections.singletonList(hash)))) .json(mapOf(pair("fingerprints", Collections.singletonList(hash))))