mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Updated BedrockProtocol
This commit is contained in:
@@ -26,6 +26,7 @@ namespace pocketmine\world\sound;
|
||||
use pocketmine\entity\Entity;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
|
||||
use pocketmine\network\mcpe\protocol\types\LevelSoundEvent;
|
||||
|
||||
/**
|
||||
* Played when an entity hits the ground after falling a short distance.
|
||||
@@ -41,7 +42,7 @@ class EntityShortFallSound implements Sound{
|
||||
|
||||
public function encode(Vector3 $pos) : array{
|
||||
return [LevelSoundEventPacket::create(
|
||||
LevelSoundEventPacket::SOUND_FALL_SMALL,
|
||||
LevelSoundEvent::FALL_SMALL,
|
||||
$pos,
|
||||
-1,
|
||||
$this->entity::getNetworkTypeId(),
|
||||
|
Reference in New Issue
Block a user