mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Players are now moved using the head, closes #1842
This commit is contained in:
parent
4d7c953572
commit
582f1540a7
@ -105,7 +105,6 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
const SPECTATOR = 3;
|
||||
const VIEW = Player::SPECTATOR;
|
||||
|
||||
const MAX_QUEUE = 2048;
|
||||
const SURVIVAL_SLOTS = 36;
|
||||
const CREATIVE_SLOTS = 112;
|
||||
|
||||
@ -1325,7 +1324,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$pk = new MovePlayerPacket();
|
||||
$pk->eid = 0;
|
||||
$pk->x = $this->x;
|
||||
$pk->y = $this->y;
|
||||
$pk->y = $this->y + $this->height; //teleport from head
|
||||
$pk->z = $this->z;
|
||||
$pk->bodyYaw = $this->yaw;
|
||||
$pk->pitch = $this->pitch;
|
||||
@ -2267,7 +2266,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
||||
$pk = new MovePlayerPacket;
|
||||
$pk->eid = 0;
|
||||
$pk->x = $this->x;
|
||||
$pk->y = $this->y;
|
||||
$pk->y = $this->y + $this->height; //teleport from head
|
||||
$pk->z = $this->z;
|
||||
$pk->bodyYaw = $this->yaw;
|
||||
$pk->pitch = $this->pitch;
|
||||
|
@ -491,7 +491,7 @@ abstract class Entity extends Position implements Metadatable{
|
||||
$pk = new MovePlayerPacket;
|
||||
$pk->eid = $this->id;
|
||||
$pk->x = $this->x;
|
||||
$pk->y = $this->y;
|
||||
$pk->y = $this->y + $this->height; //teleport from head
|
||||
$pk->z = $this->z;
|
||||
$pk->yaw = $this->yaw;
|
||||
$pk->pitch = $this->pitch;
|
||||
|
Loading…
x
Reference in New Issue
Block a user