From 0847358070f92cb27aa8c0760687feb19ae6a0e6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 14 May 2020 00:22:12 +0100 Subject: [PATCH] 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... --- src/pocketmine/network/mcpe/protocol/types/SkinImage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/network/mcpe/protocol/types/SkinImage.php b/src/pocketmine/network/mcpe/protocol/types/SkinImage.php index bee563295..14cd29ce0 100644 --- a/src/pocketmine/network/mcpe/protocol/types/SkinImage.php +++ b/src/pocketmine/network/mcpe/protocol/types/SkinImage.php @@ -49,11 +49,11 @@ class SkinImage{ public static function fromLegacy(string $data) : SkinImage{ switch(strlen($data)){ case 64 * 32 * 4: - return new self(64, 32, $data); + return new self(32, 64, $data); case 64 * 64 * 4: return new self(64, 64, $data); case 128 * 64 * 4: - return new self(128, 64, $data); + return new self(64, 128, $data); case 128 * 128 * 4: return new self(128, 128, $data); }