Skip to content

Commit

Permalink
Workaround for flight controls fail on teleport (TODO: fix this prope…
Browse files Browse the repository at this point in the history
…rly)
  • Loading branch information
dktapps committed Jun 20, 2017
1 parent a4b8dd4 commit 86742fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/pocketmine/Player.php
Expand Up @@ -3979,7 +3979,6 @@ public function sendPosition(Vector3 $pos, $yaw = null, $pitch = null, $mode = M
$pk->pitch = $pitch;
$pk->yaw = $yaw;
$pk->mode = $mode;
$pk->onGround = $this->onGround;

if($targets !== null){
$this->server->broadcastPacket($targets, $pk);
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php
Expand Up @@ -44,7 +44,7 @@ class MovePlayerPacket extends DataPacket{
public $bodyYaw;
public $pitch;
public $mode = self::MODE_NORMAL;
public $onGround;
public $onGround = false; //TODO
public $ridingEid = 0;
public $int1 = 0;
public $int2 = 0;
Expand Down

0 comments on commit 86742fc

Please sign in to comment.