Combined conditions
This commit is contained in:
parent
fc22ba0ce8
commit
79110b29db
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user