summaryrefslogtreecommitdiffstats
path: root/source/blocks/BlockLeaves.h
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-16 21:20:37 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-16 21:20:37 +0200
commit86a991c5a85a9771143320de91d87f6e986300a9 (patch)
treedee2b3b326103217b982a49c90a489eb35235392 /source/blocks/BlockLeaves.h
parentFixed a copypasta error in previous commit (diff)
downloadcuberite-86a991c5a85a9771143320de91d87f6e986300a9.tar
cuberite-86a991c5a85a9771143320de91d87f6e986300a9.tar.gz
cuberite-86a991c5a85a9771143320de91d87f6e986300a9.tar.bz2
cuberite-86a991c5a85a9771143320de91d87f6e986300a9.tar.lz
cuberite-86a991c5a85a9771143320de91d87f6e986300a9.tar.xz
cuberite-86a991c5a85a9771143320de91d87f6e986300a9.tar.zst
cuberite-86a991c5a85a9771143320de91d87f6e986300a9.zip
Diffstat (limited to '')
-rw-r--r--source/blocks/BlockLeaves.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blocks/BlockLeaves.h b/source/blocks/BlockLeaves.h
index 4bae2003f..57cfad5da 100644
--- a/source/blocks/BlockLeaves.h
+++ b/source/blocks/BlockLeaves.h
@@ -28,7 +28,7 @@ public:
{
}
- virtual int GetDropID()
+ virtual int GetDropID() override
{
MTRand rand;
@@ -40,7 +40,7 @@ public:
return E_ITEM_EMPTY;
}
- void OnDestroyed(cWorld *a_World, int a_X, int a_Y, int a_Z)
+ void OnDestroyed(cWorld *a_World, int a_X, int a_Y, int a_Z) override
{
cBlockHandler::OnDestroyed(a_World, a_X, a_Y, a_Z);
@@ -56,18 +56,18 @@ public:
}
}
- virtual void OnNeighborChanged(cWorld *a_World, int a_X, int a_Y, int a_Z)
+ virtual void OnNeighborChanged(cWorld *a_World, int a_X, int a_Y, int a_Z) override
{
NIBBLETYPE Meta = a_World->GetBlockMeta(a_X, a_Y, a_Z);
a_World->SetBlockMeta(a_X, a_Y, a_Z, Meta & 0x7); //Unset 0x8 bit so it gets checked for decay
}
- virtual bool NeedsRandomTicks()
+ virtual bool NeedsRandomTicks() override
{
return true;
}
- virtual void OnUpdate(cWorld *a_World, int a_X, int a_Y, int a_Z)
+ virtual void OnUpdate(cWorld *a_World, int a_X, int a_Y, int a_Z) override
{
NIBBLETYPE Meta = a_World->GetBlockMeta(a_X, a_Y, a_Z);
if ((Meta & 0x04) != 0)