From fe983a1a45b23c67cf6c758a4f0ffe6a8ba764d6 Mon Sep 17 00:00:00 2001 From: x12xx12x <44411062+12xx12@users.noreply.github.com> Date: Wed, 20 Apr 2022 00:10:35 +0200 Subject: Valid Height is now checked by vector. --- src/ClientHandle.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ClientHandle.h') 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; -- cgit v1.2.3