Skip to content

Commit

Permalink
Fix "Skinfile Not Found" Api Change
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRazen committed Jun 23, 2023
1 parent a32c3b9 commit b6e04eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MojangAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function validateSkinFileExists(String $skinfile): bool
$skinfile = self::MOJANG_SKIN_URL . $skinfile;

$header = @get_headers($skinfile);
return (!$header || $header[0] == 'HTTP/1.1 404 Not Found')
return (!$header || str_starts_with($header[0], 'HTTP/1.1 404'))
? false
: true;
}
Expand Down

0 comments on commit b6e04eb

Please sign in to comment.