Skip to content

Commit

Permalink
Fix Custom Skin download (Profile not authenticating)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan committed Apr 27, 2021
1 parent 2fb2db7 commit 5c2eadd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.sourcewriters.minecraft</groupId>
<artifactId>vcompat</artifactId>
<version>2.1.3</version>
<version>2.1.4</version>
<name>vCompat</name>
<distributionManagement>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ public boolean validate() {

int code = request.execute(String.format(AUTH_SERVER, "validate"), StandardContentType.JSON).getCode();

if (code == 204) {
return true;
} else {
return false;
}

return code == 204 || code == 200;
} catch (IOException ignore) {
return false;
}
Expand Down Expand Up @@ -148,7 +143,7 @@ public Profile authenticate() {

authToken = null;

if (!object.has("selectedProfile")) {
if (!response.has("selectedProfile")) {
return this;
}

Expand Down

0 comments on commit 5c2eadd

Please sign in to comment.