1
0

Combined conditions

This commit is contained in:
Masy98 2014-09-27 21:49:03 +02:00
parent fc22ba0ce8
commit 79110b29db

View File

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