summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authormathiascode <mathiascode@users.noreply.github.com>2017-05-19 16:09:01 +0200
committerLukas Pioch <lukas@zgow.de>2017-05-19 19:51:03 +0200
commit8cf48f7682a2f75363fc4b4af8f9bfba028818c0 (patch)
tree6001f58c0a3f40e05c7d2588197d24930a83052b /src/ClientHandle.cpp
parentUse FastWriter instead of StyledWriter (diff)
downloadcuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar
cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.gz
cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.bz2
cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.lz
cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.xz
cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.zst
cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index f82166820..669138f72 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -2016,7 +2016,7 @@ bool cClientHandle::CheckBlockInteractionsRate(void)
ASSERT(m_Player != nullptr);
ASSERT(m_Player->GetWorld() != nullptr);
- if (m_NumBlockChangeInteractionsThisTick > MAX_BLOCK_CHANGE_INTERACTIONS)
+ if ((cRoot::Get()->GetServer()->ShouldLimitPlayerBlockChanges()) && (m_NumBlockChangeInteractionsThisTick > MAX_BLOCK_CHANGE_INTERACTIONS))
{
return false;
}