mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-11-21 03:10:58 +08:00
Update CurseForgeRemoteModRepository.java (#3022)
432 is gameid for minecraft
https://docs.curseforge.com/#get-fingerprints-matches-by-game-id
d682b59803/Plain%20Craft%20Launcher%202/Modules/Minecraft/ModMod.vb (L1029-L1030)
This commit is contained in:
parent
b827167a3d
commit
5e0687c138
@ -156,7 +156,7 @@ public final class CurseForgeRemoteModRepository implements RemoteModRepository
|
||||
|
||||
long hash = Integer.toUnsignedLong(MurmurHash2.hash32(baos.toByteArray(), baos.size(), 1));
|
||||
|
||||
Response<FingerprintMatchesResult> response = HttpRequest.POST(PREFIX + "/v1/fingerprints")
|
||||
Response<FingerprintMatchesResult> response = HttpRequest.POST(PREFIX + "/v1/fingerprints/432")
|
||||
.json(mapOf(pair("fingerprints", Collections.singletonList(hash))))
|
||||
.header("X-API-KEY", apiKey)
|
||||
.getJson(new TypeToken<Response<FingerprintMatchesResult>>() {
|
||||
|
Loading…
Reference in New Issue
Block a user