From a3f7a230e74324d5b6c3023f27d6c9ec2f450557 Mon Sep 17 00:00:00 2001 From: Burning_TNT Date: Sun, 7 Dec 2025 21:12:08 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#4597:=20=E7=BB=95=E8=BF=87=20OptiFine=20?= =?UTF-8?q?HD=20U=20G6=20pre1=20=E4=B8=8E=E5=85=B6=E4=BB=96=E6=A8=A1?= =?UTF-8?q?=E7=BB=84=20Fingerprint=20=E5=86=B2=E7=AA=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#4946)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hmcl/mod/curse/CurseForgeRemoteModRepository.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/curse/CurseForgeRemoteModRepository.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/curse/CurseForgeRemoteModRepository.java index f884334c8..4b518c061 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/curse/CurseForgeRemoteModRepository.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/mod/curse/CurseForgeRemoteModRepository.java @@ -169,6 +169,9 @@ public final class CurseForgeRemoteModRepository implements RemoteModRepository } 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 response = withApiKey(HttpRequest.POST(PREFIX + "/v1/fingerprints/432")) .json(mapOf(pair("fingerprints", Collections.singletonList(hash))))