Skip to content

Commit

Permalink
fix: always request profile properties signature from Mojang api
Browse files Browse the repository at this point in the history
  • Loading branch information
derklaro committed Jun 14, 2023
1 parent ad09fa8 commit 4b57248
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ final class MojangProfileResolver implements ProfileResolver {
private static final Pattern UUID_DASHER_PATTERN = Pattern.compile("(\\w{8})(\\w{4})(\\w{4})(\\w{4})(\\w{12})");

private static final String NAME_TO_UUID_ENDPOINT = "https://api.mojang.com/users/profiles/minecraft/%s";
private static final String UUID_TO_PROFILE_ENDPOINT = "https://sessionserver.mojang.com/session/minecraft/profile/%s";
private static final String UUID_TO_PROFILE_ENDPOINT = "https://sessionserver.mojang.com/session/minecraft/profile/%s?unsigned=false";

private static @NotNull JsonObject makeRequest(@NotNull String endpoint) throws IOException {
HttpURLConnection connection = createBaseConnection(endpoint);
Expand Down

0 comments on commit 4b57248

Please sign in to comment.