Found an unknown field in LevelSoundEventPacket

This commit is contained in:
Dylan K. Taylor
2017-05-05 18:34:52 +01:00
parent 702c129a97
commit c383c7b0dd
2 changed files with 8 additions and 4 deletions

View File

@ -134,7 +134,7 @@ class LevelSoundEventPacket extends DataPacket{
public $extraData = -1;
public $pitch = 1;
public $unknownBool = false;
public $unknownBool2 = false;
public $disableRelativeVolume = false;
public function decode(){
$this->sound = $this->getByte();
@ -142,7 +142,7 @@ class LevelSoundEventPacket extends DataPacket{
$this->extraData = $this->getVarInt();
$this->pitch = $this->getVarInt();
$this->unknownBool = $this->getBool();
$this->unknownBool2 = $this->getBool();
$this->disableRelativeVolume = $this->getBool();
}
public function encode(){
@ -152,7 +152,7 @@ class LevelSoundEventPacket extends DataPacket{
$this->putVarInt($this->extraData);
$this->putVarInt($this->pitch);
$this->putBool($this->unknownBool);
$this->putBool($this->unknownBool2);
$this->putBool($this->disableRelativeVolume);
}
public function handle(NetworkSession $session) : bool{