From da2ea3c2ffe5a37dc9ea978579af898110d31b22 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 13 Nov 2016 16:21:30 +0100 Subject: [PATCH] Added missing "override" specifier. --- src/Items/ItemPickaxe.h | 2 +- src/Items/ItemShears.h | 2 +- src/Items/ItemShovel.h | 2 +- src/Items/ItemSword.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Items/ItemPickaxe.h b/src/Items/ItemPickaxe.h index 6e8452cd9..99c0c9c9a 100644 --- a/src/Items/ItemPickaxe.h +++ b/src/Items/ItemPickaxe.h @@ -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)) { diff --git a/src/Items/ItemShears.h b/src/Items/ItemShears.h index 745432ca0..db5e10c7e 100644 --- a/src/Items/ItemShears.h +++ b/src/Items/ItemShears.h @@ -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)) { diff --git a/src/Items/ItemShovel.h b/src/Items/ItemShovel.h index e5aae26a7..ba5fbb48e 100644 --- a/src/Items/ItemShovel.h +++ b/src/Items/ItemShovel.h @@ -59,7 +59,7 @@ public: return false; } - virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) + virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) override { switch (a_Block) { diff --git a/src/Items/ItemSword.h b/src/Items/ItemSword.h index 26372cc40..46c88b49d 100644 --- a/src/Items/ItemSword.h +++ b/src/Items/ItemSword.h @@ -59,7 +59,7 @@ public: - virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) + virtual float GetBlockBreakingStrength(BLOCKTYPE a_Block) override { if (a_Block == E_BLOCK_COBWEB) {