1
0
Fork 0

Combined conditions

This commit is contained in:
Masy98 2014-09-27 21:49:03 +02:00
parent fc22ba0ce8
commit 79110b29db
1 changed files with 11 additions and 8 deletions

View File

@ -1148,15 +1148,18 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
FinishDigAnimation();
if (!m_Player->IsGameModeCreative() && (a_OldBlock == E_BLOCK_BEDROCK))
if (!m_Player->IsGameModeCreative())
{
Kick("You can't break a bedrock!");
return;
}
if (!m_Player->IsGameModeCreative() && (a_OldBlock == E_BLOCK_BARRIER))
{
Kick("You can't break a barrier!");
return;
if (a_OldBlock == E_BLOCK_BEDROCK)
{
Kick("You can't break a bedrock!");
return;
}
if (a_OldBlock == E_BLOCK_BARRIER)
{
Kick("You can't break a barrier!");
return;
}
}
cWorld * World = m_Player->GetWorld();