diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-12 15:57:37 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-12 15:57:37 +0200 |
commit | a1716bb4156c4a85244bcd64b63ebee229fabb54 (patch) | |
tree | f8476ba9ba7668b4e56cfc745a9a4617e071c82d /src/ClientHandle.cpp | |
parent | Fixed iron ore drop. (diff) | |
download | cuberite-a1716bb4156c4a85244bcd64b63ebee229fabb54.tar cuberite-a1716bb4156c4a85244bcd64b63ebee229fabb54.tar.gz cuberite-a1716bb4156c4a85244bcd64b63ebee229fabb54.tar.bz2 cuberite-a1716bb4156c4a85244bcd64b63ebee229fabb54.tar.lz cuberite-a1716bb4156c4a85244bcd64b63ebee229fabb54.tar.xz cuberite-a1716bb4156c4a85244bcd64b63ebee229fabb54.tar.zst cuberite-a1716bb4156c4a85244bcd64b63ebee229fabb54.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index a6d7c3066..e2759dc6c 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1134,6 +1134,12 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo FinishDigAnimation(); + if (!m_Player->IsGameModeCreative() && (a_OldBlock == E_BLOCK_BEDROCK)) + { + Kick("You can't break a bedrock!"); + return; + } + cWorld * World = m_Player->GetWorld(); cItemHandler * ItemHandler = cItemHandler::GetItemHandler(m_Player->GetEquippedItem()); |