From 86742fcf3008daa2197469af7e8d1af43ae727d9 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 20 Jun 2017 20:10:20 +0100 Subject: [PATCH] Workaround for flight controls fail on teleport (TODO: fix this properly) --- src/pocketmine/Player.php | 1 - src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 3f574b626b..897ec95aac 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -3979,7 +3979,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade $pk->pitch = $pitch; $pk->yaw = $yaw; $pk->mode = $mode; - $pk->onGround = $this->onGround; if($targets !== null){ $this->server->broadcastPacket($targets, $pk); diff --git a/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php b/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php index 6f44da2902..01e3542471 100644 --- a/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php +++ b/src/pocketmine/network/mcpe/protocol/MovePlayerPacket.php @@ -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;