mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-18 09:24:05 +00:00
SkinImage: fix inverted auto-detect height/width, closes #3490
it seems like the client doesn't care if the h/w are inverted for skins anyway, but this is still wrong anyway...
This commit is contained in:
parent
54f41dc145
commit
0847358070
@ -49,11 +49,11 @@ class SkinImage{
|
|||||||
public static function fromLegacy(string $data) : SkinImage{
|
public static function fromLegacy(string $data) : SkinImage{
|
||||||
switch(strlen($data)){
|
switch(strlen($data)){
|
||||||
case 64 * 32 * 4:
|
case 64 * 32 * 4:
|
||||||
return new self(64, 32, $data);
|
return new self(32, 64, $data);
|
||||||
case 64 * 64 * 4:
|
case 64 * 64 * 4:
|
||||||
return new self(64, 64, $data);
|
return new self(64, 64, $data);
|
||||||
case 128 * 64 * 4:
|
case 128 * 64 * 4:
|
||||||
return new self(128, 64, $data);
|
return new self(64, 128, $data);
|
||||||
case 128 * 128 * 4:
|
case 128 * 128 * 4:
|
||||||
return new self(128, 128, $data);
|
return new self(128, 128, $data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user