New PlayerActionPacket constants

This commit is contained in:
Dylan K. Taylor 2016-11-22 20:11:14 +00:00
parent 28c3a882f8
commit 6a8976c534
2 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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;