1
0

Merge pull request #3430 from cuberite/Overrides

Added missing "override" specifier.
This commit is contained in:
Mattes D 2016-11-13 16:44:22 +01:00 committed by GitHub
commit 7e15912a8b
4 changed files with 4 additions and 4 deletions

View File

@ -109,7 +109,7 @@ public:
}
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block)
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) override
{
if (!IsBlockMaterialIron(a_Block) && !IsBlockMaterialAnvil(a_Block) && !IsBlockMaterialRock(a_Block))
{

View File

@ -93,7 +93,7 @@ public:
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block)
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) override
{
if (IsBlocksWeb(a_Block) || IsBlockMaterialLeaves(a_Block))
{

View File

@ -59,7 +59,7 @@ public:
return false;
}
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block)
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) override
{
switch (a_Block)
{

View File

@ -59,7 +59,7 @@ public:
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block)
virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) override
{
if (a_Block == E_BLOCK_COBWEB)
{