summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 15:57:37 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 15:57:37 +0200
commita1716bb4156c4a85244bcd64b63ebee229fabb54 (patch)
treef8476ba9ba7668b4e56cfc745a9a4617e071c82d /src/ClientHandle.cpp
parentFixed iron ore drop. (diff)
downloadcuberite-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 '')
-rw-r--r--src/ClientHandle.cpp6
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());