1
0
Fork 0

Players in survival mode are not allowed to break a bedrock.

This commit is contained in:
Howaner 2014-09-12 15:57:37 +02:00
parent abcae75992
commit a1716bb415
1 changed files with 6 additions and 0 deletions

View File

@ -1134,6 +1134,12 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
FinishDigAnimation();
if (!m_Player->IsGameModeCreative() && (a_OldBlock == E_BLOCK_BEDROCK))
{
Kick("You can't break a bedrock!");
return;
}
cWorld * World = m_Player->GetWorld();
cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem());