SkinData: fixed capeImage type violation (doesn't accept null)

This commit is contained in:
Dylan K. Taylor 2020-06-15 23:51:48 +01:00
parent a4e250a3e6
commit 2712befa82
2 changed files with 1 additions and 6 deletions

View File

@ -75,7 +75,7 @@ class SkinData{
$this->resourcePatch = $resourcePatch;
$this->skinImage = $skinImage;
$this->animations = $animations;
$this->capeImage = $capeImage;
$this->capeImage = $capeImage ?? new SkinImage(0, 0, "");
$this->geometryData = $geometryData;
$this->animationData = $animationData;
$this->premium = $premium;

View File

@ -1595,11 +1595,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/network/mcpe/protocol/types/RuntimeBlockMapping.php
-
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\protocol\\\\types\\\\SkinData\\:\\:\\$capeImage \\(pocketmine\\\\network\\\\mcpe\\\\protocol\\\\types\\\\SkinImage\\) does not accept pocketmine\\\\network\\\\mcpe\\\\protocol\\\\types\\\\SkinImage\\|null\\.$#"
count: 1
path: ../../../src/pocketmine/network/mcpe/protocol/types/SkinData.php
-
message: "#^Cannot call method wakeupSleeper\\(\\) on pocketmine\\\\snooze\\\\SleeperNotifier\\|null\\.$#"
count: 1