diff options
author | Masy98 <masy@antheruscraft.de> | 2014-09-27 21:07:52 +0200 |
---|---|---|
committer | Masy98 <masy@antheruscraft.de> | 2014-09-27 21:07:52 +0200 |
commit | fc22ba0ce89b12b13bca00f5005f96528d1c91ae (patch) | |
tree | 66fb96ce364cb114745cae992de7e91b88dadd31 /src/ClientHandle.cpp | |
parent | Added default value to switch and spruce gate to fence gate handler (diff) | |
download | cuberite-fc22ba0ce89b12b13bca00f5005f96528d1c91ae.tar cuberite-fc22ba0ce89b12b13bca00f5005f96528d1c91ae.tar.gz cuberite-fc22ba0ce89b12b13bca00f5005f96528d1c91ae.tar.bz2 cuberite-fc22ba0ce89b12b13bca00f5005f96528d1c91ae.tar.lz cuberite-fc22ba0ce89b12b13bca00f5005f96528d1c91ae.tar.xz cuberite-fc22ba0ce89b12b13bca00f5005f96528d1c91ae.tar.zst cuberite-fc22ba0ce89b12b13bca00f5005f96528d1c91ae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 5 |
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()); |