Sound->encode() now accepts Vector3|null

this will be needed for proper no-relative sound support.
This commit is contained in:
Dylan K. Taylor
2019-05-30 19:51:27 +01:00
parent 77ace57985
commit 1049ffecc9
25 changed files with 26 additions and 26 deletions

View File

@@ -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());
}
}