Human: Add support for 128x128 skins in isValidSkin() (#2140)

This commit is contained in:
SleepSpace9 2018-04-07 10:00:08 +02:00 committed by Dylan K. Taylor
parent 3f31f6d310
commit 47faf5a994

View File

@ -105,7 +105,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
* @return bool
*/
public static function isValidSkin(string $skin) : bool{
return strlen($skin) === 64 * 64 * 4 or strlen($skin) === 64 * 32 * 4;
return strlen($skin) === 64 * 64 * 4 or strlen($skin) === 64 * 32 * 4 or strlen($skin) === 128 * 128 * 4;
}
/**