Workaround for flight controls fail on teleport (TODO: fix this properly)

This commit is contained in:
Dylan K. Taylor 2017-06-20 20:10:20 +01:00
parent a4b8dd43e6
commit 86742fcf30
2 changed files with 1 additions and 2 deletions

View File

@ -3979,7 +3979,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$pk->pitch = $pitch; $pk->pitch = $pitch;
$pk->yaw = $yaw; $pk->yaw = $yaw;
$pk->mode = $mode; $pk->mode = $mode;
$pk->onGround = $this->onGround;
if($targets !== null){ if($targets !== null){
$this->server->broadcastPacket($targets, $pk); $this->server->broadcastPacket($targets, $pk);

View File

@ -44,7 +44,7 @@ class MovePlayerPacket extends DataPacket{
public $bodyYaw; public $bodyYaw;
public $pitch; public $pitch;
public $mode = self::MODE_NORMAL; public $mode = self::MODE_NORMAL;
public $onGround; public $onGround = false; //TODO
public $ridingEid = 0; public $ridingEid = 0;
public $int1 = 0; public $int1 = 0;
public $int2 = 0; public $int2 = 0;