summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockRedstoneLamp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockRedstoneLamp.h')
-rw-r--r--src/Blocks/BlockRedstoneLamp.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Blocks/BlockRedstoneLamp.h b/src/Blocks/BlockRedstoneLamp.h
index 576467c12..1f3016e40 100644
--- a/src/Blocks/BlockRedstoneLamp.h
+++ b/src/Blocks/BlockRedstoneLamp.h
@@ -11,16 +11,12 @@ class cBlockRedstoneLampHandler:
public cBlockHandler
{
public:
- cBlockRedstoneLampHandler(BLOCKTYPE a_BlockType):
- cBlockHandler(a_BlockType)
- {
- }
-
-
+ using cBlockHandler::cBlockHandler;
+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
{
// Always drop the Off variant:
return(cItem(E_BLOCK_REDSTONE_LAMP_OFF, 1, 0));
@@ -30,7 +26,7 @@ public:
- virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override
+ virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
{
UNUSED(a_Meta);
return 15;