summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockNetherrack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Blocks/BlockNetherrack.h')
-rw-r--r--src/Blocks/BlockNetherrack.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/Blocks/BlockNetherrack.h b/src/Blocks/BlockNetherrack.h
index 3ccd811f3..4c839d5ee 100644
--- a/src/Blocks/BlockNetherrack.h
+++ b/src/Blocks/BlockNetherrack.h
@@ -1,12 +1,22 @@
-#pragma once
+#pragma once
#include "BlockHandler.h"
+
+
+
+
class cBlockNetherrack : public cBlockHandler
{
public:
- cBlockNetherrack(BLOCKTYPE a_Type) : cBlockHandler(a_Type){}
- virtual bool CanSustainPlant(BLOCKTYPE a_Plant) override { return (a_Plant == E_BLOCK_NETHER_WART); }
+ using cBlockHandler::cBlockHandler;
+
+private:
+
+ virtual bool CanSustainPlant(BLOCKTYPE a_Plant) const override
+ {
+ return a_Plant == E_BLOCK_NETHER_WART;
+ }
};