mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
LevelSoundEventPacket: fixed bad null assignment in ::create()
This commit is contained in:
parent
c474aa42e5
commit
9f11be25cb
@ -364,7 +364,7 @@ class LevelSoundEventPacket extends DataPacket implements ClientboundPacket, Ser
|
||||
$result = new self;
|
||||
$result->sound = $sound;
|
||||
$result->extraData = $extraData;
|
||||
$result->position = $pos;
|
||||
$result->position = $pos ?? new Vector3(0, 0, 0);
|
||||
$result->disableRelativeVolume = $pos === null;
|
||||
$result->entityType = $entityType;
|
||||
$result->isBabyMob = $isBabyMob;
|
||||
|
@ -190,11 +190,6 @@ parameters:
|
||||
count: 1
|
||||
path: ../../../src/network/mcpe/NetworkSession.php
|
||||
|
||||
-
|
||||
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\protocol\\\\LevelSoundEventPacket\\:\\:\\$position \\(pocketmine\\\\math\\\\Vector3\\) does not accept pocketmine\\\\math\\\\Vector3\\|null\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/network/mcpe/protocol/LevelSoundEventPacket.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$eid of method pocketmine\\\\network\\\\mcpe\\\\protocol\\\\serializer\\\\PacketSerializer\\:\\:putEntityUniqueId\\(\\) expects int, int\\|null given\\.$#"
|
||||
count: 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user