mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Cape data can be null
This commit is contained in:
@ -138,6 +138,10 @@ class Skin{
|
||||
* @return SerializedImage
|
||||
*/
|
||||
public function getCapeData() : SerializedImage{
|
||||
if($this->capeData === null){
|
||||
return new SerializedImage(0, 0, "");
|
||||
}
|
||||
|
||||
return $this->capeData;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user