1
0

Allow enabling/disabling of block change limit

This commit is contained in:
mathiascode
2017-05-19 17:09:01 +03:00
committed by Lukas Pioch
parent b02886a901
commit 8cf48f7682
3 changed files with 8 additions and 1 deletions

View File

@@ -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;
}