summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTallGrass.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-17 00:18:59 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-12-17 00:18:59 +0100
commit8d9049603bba72f55f1fa9e47f281bb7d8bfca37 (patch)
treefa2bc45598eaf41da3a88960c1b4850f93c7b7f7 /src/Blocks/BlockTallGrass.h
parentRemoved test (diff)
downloadcuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.gz
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.bz2
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.lz
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.xz
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.tar.zst
cuberite-8d9049603bba72f55f1fa9e47f281bb7d8bfca37.zip
Diffstat (limited to 'src/Blocks/BlockTallGrass.h')
-rw-r--r--src/Blocks/BlockTallGrass.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockTallGrass.h b/src/Blocks/BlockTallGrass.h
index 8e821b899..4134a01f8 100644
--- a/src/Blocks/BlockTallGrass.h
+++ b/src/Blocks/BlockTallGrass.h
@@ -38,7 +38,7 @@ public:
virtual void DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cBlockPluginInterface & a_BlockPluginInterface, cEntity * a_Digger, int a_BlockX, int a_BlockY, int a_BlockZ, bool a_CanDrop) override
{
- if (a_CanDrop && (a_Digger != NULL) && (a_Digger->GetEquippedWeapon().m_ItemType == E_ITEM_SHEARS))
+ if (a_CanDrop && (a_Digger != nullptr) && (a_Digger->GetEquippedWeapon().m_ItemType == E_ITEM_SHEARS))
{
NIBBLETYPE Meta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ);
cItems Drops;