From 64a24a4c79ace77ff111f0b555ff1d9d942bf56e Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 16 Jul 2022 12:04:14 +0100 Subject: ClientHandle: Fix block interaction regressions (#5431) * ClientHandle: Fix block interaction regressions * Fix reach distance being halved. * Fix fire extinguish not working, fixes #5422. * AddFaceDirection: deprecate non-vector version --- src/ClientHandle.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ClientHandle.h') diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 9f3cbb18d..c5949b57b 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -581,6 +581,9 @@ private: /** Returns true if the rate block interactions is within a reasonable limit (bot protection) */ bool CheckBlockInteractionsRate(void); + /** Returns whether the player could in fact reach the position they're attempting to interact with. */ + bool IsWithinReach(Vector3i a_Position) const; + /** Adds a single chunk to be streamed to the client; used by StreamChunks() */ void StreamChunk(int a_ChunkX, int a_ChunkZ, cChunkSender::Priority a_Priority); -- cgit v1.2.3