Fix Chrly's API response handling

This commit is contained in:
ErickSkrauch 2020-10-12 00:29:54 +03:00
parent 2a4f29801d
commit 0c2832f95f

View File

@ -22,7 +22,7 @@ class SkinsSystemApi {
*/
public function textures(string $username): ?array {
$response = $this->getClient()->request('GET', $this->buildUrl('/textures/' . $username));
if ($response->getStatusCode() !== 204) {
if ($response->getStatusCode() !== 200) {
return null;
}