BossEventPacket: fix crash in ::unknown6()

This commit is contained in:
Dylan K. Taylor 2019-06-27 15:16:06 +01:00
parent f3882dd658
commit 6838a1e07a

View File

@ -114,6 +114,8 @@ class BossEventPacket extends DataPacket implements ClientboundPacket, Serverbou
public static function unknown6(int $bossEntityUniqueId, int $unknownShort) : self{
$result = self::base($bossEntityUniqueId, self::TYPE_UNKNOWN_6);
$result->unknownShort = $unknownShort;
$result->color = 0; //hardcoded due to being useless
$result->overlay = 0;
return $result;
}