mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Block: get rid of getRuntimeId()
the runtime ID mapping should be non-global in case of multiple protocols.
This commit is contained in:
@ -26,6 +26,7 @@ namespace pocketmine\world\sound;
|
||||
use pocketmine\block\Block;
|
||||
use pocketmine\entity\Entity;
|
||||
use pocketmine\math\Vector3;
|
||||
use pocketmine\network\mcpe\convert\RuntimeBlockMapping;
|
||||
use pocketmine\network\mcpe\protocol\LevelSoundEventPacket;
|
||||
|
||||
/**
|
||||
@ -47,7 +48,7 @@ class EntityLandSound implements Sound{
|
||||
return LevelSoundEventPacket::create(
|
||||
LevelSoundEventPacket::SOUND_LAND,
|
||||
$pos,
|
||||
$this->blockLandedOn->getRuntimeId(),
|
||||
RuntimeBlockMapping::getInstance()->toRuntimeId($this->blockLandedOn->getId(), $this->blockLandedOn->getMeta()),
|
||||
$this->entity::getNetworkTypeId()
|
||||
//TODO: does isBaby have any relevance here?
|
||||
);
|
||||
|
Reference in New Issue
Block a user