mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Sound->encode() now accepts Vector3|null
this will be needed for proper no-relative sound support.
This commit is contained in:
@@ -36,7 +36,7 @@ class BlockBreakSound implements Sound{
|
||||
$this->block = $block;
|
||||
}
|
||||
|
||||
public function encode(Vector3 $pos){
|
||||
public function encode(?Vector3 $pos){
|
||||
return LevelSoundEventPacket::create(LevelSoundEventPacket::SOUND_BREAK, $pos, $this->block->getRuntimeId());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user