summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-02-23 20:31:58 +0100
committerHowaner <franzi.moos@googlemail.com>2014-02-23 20:31:58 +0100
commit084971424fcc258e6958c464ada3263f5b85a870 (patch)
treededa85e69f42c1edd48f1dd32c605ad8d4dd7864 /src/ClientHandle.cpp
parentNo Sword Block Destroying in Creative Mode (diff)
downloadcuberite-084971424fcc258e6958c464ada3263f5b85a870.tar
cuberite-084971424fcc258e6958c464ada3263f5b85a870.tar.gz
cuberite-084971424fcc258e6958c464ada3263f5b85a870.tar.bz2
cuberite-084971424fcc258e6958c464ada3263f5b85a870.tar.lz
cuberite-084971424fcc258e6958c464ada3263f5b85a870.tar.xz
cuberite-084971424fcc258e6958c464ada3263f5b85a870.tar.zst
cuberite-084971424fcc258e6958c464ada3263f5b85a870.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 38301b86f..4715eb100 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -797,7 +797,7 @@ void cClientHandle::HandleBlockDigStarted(int a_BlockX, int a_BlockY, int a_Bloc
if (
m_Player->IsGameModeCreative() &&
- cItemSwordHandler::IsSword(m_Player->GetInventory().GetEquippedItem().m_ItemType)
+ ItemCategory::IsSword(m_Player->GetInventory().GetEquippedItem().m_ItemType)
)
{
// Players can't destroy blocks with a Sword in the hand.