summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 878d309c9..52ea59884 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -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());