fix web requests

This commit is contained in:
Lee
2024-04-06 21:44:42 +01:00
parent efb3281818
commit 29dead7c7c
2 changed files with 4 additions and 4 deletions
src/main/java/cc/fascinated

@ -23,7 +23,7 @@ public class MojangAPIService {
* @return the profile
*/
public MojangSessionServerProfile getSessionServerProfile(String id) {
return WebRequest.get(mojangSessionServerUrl + "/session/minecraft/profile/" + id);
return WebRequest.get(mojangSessionServerUrl + "/session/minecraft/profile/" + id, MojangSessionServerProfile.class);
}
/**
@ -33,6 +33,6 @@ public class MojangAPIService {
* @return the profile
*/
public MojangApiProfile getApiProfile(String id) {
return WebRequest.get(mojangApiUrl + "/users/profiles/minecraft/" + id);
return WebRequest.get(mojangApiUrl + "/users/profiles/minecraft/" + id, MojangApiProfile.class);
}
}