mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Cape data can be null
This commit is contained in:
parent
40b4166a6e
commit
dbd36d66ae
@ -138,6 +138,10 @@ class Skin{
|
||||
* @return SerializedImage
|
||||
*/
|
||||
public function getCapeData() : SerializedImage{
|
||||
if($this->capeData === null){
|
||||
return new SerializedImage(0, 0, "");
|
||||
}
|
||||
|
||||
return $this->capeData;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user