Update CurseForgeRemoteModRepository.java (#3022)
432 is gameid for minecraft https://docs.curseforge.com/#get-fingerprints-matches-by-game-id https://github.com/Hex-Dragon/PCL2/blob/d682b598032bc4c7e3b1367cae4d51d037007ae9/Plain%20Craft%20Launcher%202/Modules/Minecraft/ModMod.vb#L1029-L1030
This commit is contained in:
1 parent
b827167a3d
commit
5e0687c138
1 file changed
+1
-1
+1
-1
@@ -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>>() {
|
||||
|
||||
Reference in new issue
Block a user