summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockTallGrass.h
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-12-18 19:32:48 +0100
committerMasy98 <masy@antheruscraft.de>2014-12-18 19:32:48 +0100
commit706b9181e612410ea99c9d725d3cd448dafb152c (patch)
tree0d1281525b92566409a3c4a6d0bf8a0e9d5f7dc8 /src/Blocks/BlockTallGrass.h
parentAdded Entity Guardian (diff)
parentMerge pull request #1679 from SphinxC0re/master (diff)
downloadcuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.gz
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.bz2
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.lz
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.xz
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.tar.zst
cuberite-706b9181e612410ea99c9d725d3cd448dafb152c.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;