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