diff options
author | x12xx12x <44411062+12xx12@users.noreply.github.com> | 2022-04-20 00:10:35 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2022-04-20 09:41:02 +0200 |
commit | fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6 (patch) | |
tree | a5c9f00728af0f2ca841bb5d881b8d0d785b24ae /src/ClientHandle.h | |
parent | Updated protocol functions to Vector3x (diff) | |
download | cuberite-fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6.tar cuberite-fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6.tar.gz cuberite-fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6.tar.bz2 cuberite-fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6.tar.lz cuberite-fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6.tar.xz cuberite-fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6.tar.zst cuberite-fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 927f0bfc8..66ae7f20e 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -370,14 +370,14 @@ public: // tolua_export /** Verifies and sets player position, performing relevant checks. Calls relevant methods to process movement related statistics. Requires state of previous position and on-ground status, so must be called when these are still intact. */ - void HandlePlayerMove(double a_PosX, double a_PosY, double a_PosZ, bool a_IsOnGround); + void HandlePlayerMove(Vector3d a_Pos, bool a_IsOnGround); - void HandlePlayerMoveLook(double a_PosX, double a_PosY, double a_PosZ, float a_Rotation, float a_Pitch, bool a_IsOnGround); + void HandlePlayerMoveLook(Vector3d a_Pos, float a_Rotation, float a_Pitch, bool a_IsOnGround); void HandlePluginMessage (const AString & a_Channel, ContiguousByteBufferView a_Message); void HandleRespawn (void); - void HandleRightClick (Vector3i a_BlockPos, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, bool a_UsedMainHand); + void HandleRightClick (Vector3i a_BlockPos, eBlockFace a_BlockFace, Vector3i a_Cursor, bool a_UsedMainHand); void HandleSlotSelected (Int16 a_SlotNum); void HandleSpectate (const cUUID & a_PlayerUUID); @@ -540,6 +540,8 @@ private: static int s_ClientCount; + static Vector3i s_IllegalPosition; + /** ID used for identification during authenticating. Assigned sequentially for each new instance. */ int m_UniqueID; |