Protocol changes for 1.1.0.3, fixed red sky, fixed crashes

This commit is contained in:
Dylan K. Taylor
2017-04-14 15:17:56 +01:00
parent f3ab45e7d5
commit a327a74ece
3 changed files with 47 additions and 17 deletions

View File

@ -42,6 +42,7 @@ class MovePlayerPacket extends DataPacket{
public $pitch;
public $mode = self::MODE_NORMAL;
public $onGround;
public $eid2; //???
public function decode(){
$this->eid = $this->getEntityRuntimeId();
@ -51,6 +52,7 @@ class MovePlayerPacket extends DataPacket{
$this->bodyYaw = $this->getLFloat();
$this->mode = $this->getByte();
$this->onGround = $this->getBool();
$this->eid2 = $this->getEntityRuntimeId();
}
public function encode(){
@ -62,6 +64,7 @@ class MovePlayerPacket extends DataPacket{
$this->putLFloat($this->bodyYaw); //TODO
$this->putByte($this->mode);
$this->putBool($this->onGround);
$this->putEntityRuntimeId($this->eid2);
}
public function handle(NetworkSession $session) : bool{