summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemHandler.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-21 18:08:05 +0200
committermadmaxoft <github@xoft.cz>2013-09-21 18:08:30 +0200
commit405d434c06bc3094ed70c2f20b3849273e1fbdd2 (patch)
tree6ecce434c94a9ce3366691e87a3871c5685f7876 /source/Items/ItemHandler.cpp
parentMerge pull request #179 from tonibm19/patch-6 (diff)
downloadcuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.gz
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.bz2
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.lz
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.xz
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.tar.zst
cuberite-405d434c06bc3094ed70c2f20b3849273e1fbdd2.zip
Diffstat (limited to '')
-rw-r--r--source/Items/ItemHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Items/ItemHandler.cpp b/source/Items/ItemHandler.cpp
index 9d38e6f3a..13f5293b9 100644
--- a/source/Items/ItemHandler.cpp
+++ b/source/Items/ItemHandler.cpp
@@ -247,7 +247,7 @@ void cItemHandler::OnBlockDestroyed(cWorld * a_World, cPlayer * a_Player, const
BLOCKTYPE Block = a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ);
cBlockHandler * Handler = cBlockHandler::GetBlockHandler(Block);
- if (a_Player->GetGameMode() == gmSurvival)
+ if (a_Player->IsGameModeSurvival())
{
if (!BlockRequiresSpecialTool(Block) || CanHarvestBlock(Block))
{