mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
New PlayerActionPacket constants
This commit is contained in:
parent
28c3a882f8
commit
6a8976c534
@ -2280,6 +2280,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
$this->setSneaking(false);
|
$this->setSneaking(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
assert(false, "Unhandled player action " . $packet->action . " from " . $this->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->startAction = -1;
|
$this->startAction = -1;
|
||||||
|
@ -42,6 +42,9 @@ class PlayerActionPacket extends DataPacket{
|
|||||||
const ACTION_STOP_SNEAK = 12;
|
const ACTION_STOP_SNEAK = 12;
|
||||||
const ACTION_DIMENSION_CHANGE = 13; //TODO: correct these
|
const ACTION_DIMENSION_CHANGE = 13; //TODO: correct these
|
||||||
|
|
||||||
|
const ACTION_START_GLIDE = 15;
|
||||||
|
const ACTION_STOP_GLIDE = 16;
|
||||||
|
|
||||||
public $eid;
|
public $eid;
|
||||||
public $action;
|
public $action;
|
||||||
public $x;
|
public $x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user