Players in survival mode are not allowed to break a bedrock.
This commit is contained in:
parent
abcae75992
commit
a1716bb415
@ -1134,6 +1134,12 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
|
|||||||
|
|
||||||
FinishDigAnimation();
|
FinishDigAnimation();
|
||||||
|
|
||||||
|
if (!m_Player->IsGameModeCreative() && (a_OldBlock == E_BLOCK_BEDROCK))
|
||||||
|
{
|
||||||
|
Kick("You can't break a bedrock!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
cWorld * World = m_Player->GetWorld();
|
cWorld * World = m_Player->GetWorld();
|
||||||
cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem());
|
cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user