mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Human: Add support for 128x128 skins in isValidSkin() (#2140)
This commit is contained in:
parent
3f31f6d310
commit
47faf5a994
@ -105,7 +105,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function isValidSkin(string $skin) : 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user