LegacySkinAdapter: Use 64x64 for persona polyfilled skins

64x32 has some corruption issues and generally just looks really bad.
This commit is contained in:
Dylan K. Taylor 2021-09-09 16:04:43 +01:00
parent 806f03bd37
commit 4c65a0cdaa
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -54,7 +54,7 @@ class LegacySkinAdapter implements SkinAdapter{
public function fromSkinData(SkinData $data) : Skin{
if($data->isPersona()){
return new Skin("Standard_Custom", str_repeat(random_bytes(3) . "\xff", 2048));
return new Skin("Standard_Custom", str_repeat(random_bytes(3) . "\xff", 4096));
}
$capeData = $data->isPersonaCapeOnClassic() ? "" : $data->getCapeImage()->getData();