summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockNetherrack.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-09-20 15:50:52 +0200
committerGitHub <noreply@github.com>2020-09-20 15:50:52 +0200
commit68cced73afe546328cf94ed07c57deee47bfadec (patch)
tree88be88e3fd4a208b9849e526f1877caa44058ab5 /src/Blocks/BlockNetherrack.h
parentAdded armor and shulker box cleaning (#4875) (diff)
downloadcuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar
cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.gz
cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.bz2
cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.lz
cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.xz
cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.zst
cuberite-68cced73afe546328cf94ed07c57deee47bfadec.zip
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;
+ }
};