mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
BossEventPacket: fix crash in ::unknown6()
This commit is contained in:
parent
f3882dd658
commit
6838a1e07a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user