Reduce mojang profile API call limit (Fixes #4121)

This commit is contained in:
Shane Freeder 2020-02-22 11:12:52 +00:00
parent 4cd91350db
commit d4ba9d7605
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C

View File

@ -15,7 +15,7 @@ import java.util.*;
import java.util.concurrent.Callable;
public class UUIDFetcher implements Callable<Map<String, UUID>> {
private static final int PROFILES_PER_REQUEST = 50;
private static final int PROFILES_PER_REQUEST = 10;
private static final long RATE_LIMIT = 100L;
private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";
private final List<String> names;