diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-07-16 13:04:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 13:04:14 +0200 |
commit | 64a24a4c79ace77ff111f0b555ff1d9d942bf56e (patch) | |
tree | 9ab668e5ac829c7b09e7e9f457de2c0b73a8d903 /src/ClientHandle.h | |
parent | ItemHandler: Fix torch handler not being called (#5433) (diff) | |
download | cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.gz cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.bz2 cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.lz cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.xz cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.zst cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.zip |
Diffstat (limited to 'src/ClientHandle.h')
-rw-r--r-- | src/ClientHandle.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |