From 6a8976c534ca6d681899888c1f3401d9acbb5a10 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 22 Nov 2016 20:11:14 +0000 Subject: [PATCH] New PlayerActionPacket constants --- src/pocketmine/Player.php | 2 ++ src/pocketmine/network/protocol/PlayerActionPacket.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 17c83d812..bbab1951f 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2280,6 +2280,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade $this->setSneaking(false); } break; + default: + assert(false, "Unhandled player action " . $packet->action . " from " . $this->getName()); } $this->startAction = -1; diff --git a/src/pocketmine/network/protocol/PlayerActionPacket.php b/src/pocketmine/network/protocol/PlayerActionPacket.php index c31d46949..3824e39ca 100644 --- a/src/pocketmine/network/protocol/PlayerActionPacket.php +++ b/src/pocketmine/network/protocol/PlayerActionPacket.php @@ -42,6 +42,9 @@ class PlayerActionPacket extends DataPacket{ const ACTION_STOP_SNEAK = 12; const ACTION_DIMENSION_CHANGE = 13; //TODO: correct these + const ACTION_START_GLIDE = 15; + const ACTION_STOP_GLIDE = 16; + public $eid; public $action; public $x;