mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Sound::encode() position is no longer nullable
making this nullable was based on the invalid assumption that global sounds have no position, but it turns out they _do_ still use the position to make the sound come from the correct direction.
This commit is contained in:
@ -44,7 +44,7 @@ class EntityLandSound implements Sound{
|
||||
$this->blockLandedOn = $blockLandedOn;
|
||||
}
|
||||
|
||||
public function encode(?Vector3 $pos) : array{
|
||||
public function encode(Vector3 $pos) : array{
|
||||
return [LevelSoundEventPacket::create(
|
||||
LevelSoundEventPacket::SOUND_LAND,
|
||||
$pos,
|
||||
|
Reference in New Issue
Block a user