Merge branch '3.6'

This commit is contained in:
Dylan K. Taylor
2019-02-09 19:22:00 +00:00
20 changed files with 422 additions and 126 deletions

View File

@ -299,7 +299,7 @@ class LevelSoundEventPacket extends DataPacket implements ClientboundPacket, Ser
public $disableRelativeVolume = false;
protected function decodePayload() : void{
$this->sound = $this->getByte();
$this->sound = $this->getUnsignedVarInt();
$this->position = $this->getVector3();
$this->extraData = $this->getVarInt();
$this->entityType = $this->getString();
@ -308,7 +308,7 @@ class LevelSoundEventPacket extends DataPacket implements ClientboundPacket, Ser
}
protected function encodePayload() : void{
$this->putByte($this->sound);
$this->putUnsignedVarInt($this->sound);
$this->putVector3($this->position);
$this->putVarInt($this->extraData);
$this->putString($this->entityType);