add cursseforge api key
This commit is contained in:
parent
3b6ddb56e2
commit
78effa6543
|
@ -25,12 +25,7 @@ public final class CurseForgeRemoteModRepository implements RemoteModRepository
|
||||||
|
|
||||||
private static final String PREFIX = "https://api.curseforge.com";
|
private static final String PREFIX = "https://api.curseforge.com";
|
||||||
|
|
||||||
private static String apiKey;
|
private static final String apiKey = "$2a$10$qqJ3zZFG5CDsVHk8eV5ft.2ywg2edBtHwS3gzFnw7CDe3X2cKpWZG";
|
||||||
|
|
||||||
static {
|
|
||||||
apiKey = System.getProperty("hmcl.curseforge.apikey",
|
|
||||||
JarUtils.thisJar().flatMap(JarUtils::getManifest).map(manifest -> manifest.getMainAttributes().getValue("CurseForge-Api-Key")).orElse(""));
|
|
||||||
}
|
|
||||||
|
|
||||||
private final Type type;
|
private final Type type;
|
||||||
private final int section;
|
private final int section;
|
||||||
|
|
Loading…
Reference in New Issue