1
0

Added barriers correctly

This commit is contained in:
Masy98
2014-09-27 21:07:52 +02:00
parent 6dd47e783a
commit fc22ba0ce8
2 changed files with 6 additions and 0 deletions

View File

@@ -1153,6 +1153,11 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo
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;
}
cWorld * World = m_Player->GetWorld();
cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem());