summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockOre.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockOre.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Blocks/BlockOre.h b/src/Blocks/BlockOre.h
index 46b18f008..e329a5781 100644
--- a/src/Blocks/BlockOre.h
+++ b/src/Blocks/BlockOre.h
@@ -13,16 +13,12 @@ class cBlockOreHandler:
using Super = cBlockHandler;
public:
- cBlockOreHandler(BLOCKTYPE a_BlockType):
- Super(a_BlockType)
- {
- }
-
-
+ using Super::Super;
+private:
- virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) override
+ virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) const override
{
// If using silk-touch, drop self rather than the resource:
if (ToolHasSilkTouch(a_Tool))
@@ -62,7 +58,7 @@ public:
cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface,
cPlayer & a_Player, Vector3i a_BlockPos,
BLOCKTYPE a_OldBlockType, NIBBLETYPE a_OldBlockMeta
- ) override
+ ) const override
{
if (!a_Player.IsGameModeSurvival())
{