diff options
author | Mattes D <github@xoft.cz> | 2020-04-13 18:38:06 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-04-16 22:07:48 +0200 |
commit | 9ee47e59995f858ec531b3ee467f131594e4ba1f (patch) | |
tree | f005d8af4a0362d7eab8a96a71aca0d73275f8e1 /src/Blocks/BlockFluid.h | |
parent | Prevent crash when breeding (diff) | |
download | cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.gz cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.bz2 cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.lz cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.xz cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.zst cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockFluid.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/Blocks/BlockFluid.h b/src/Blocks/BlockFluid.h index 430940df0..36f363a92 100644 --- a/src/Blocks/BlockFluid.h +++ b/src/Blocks/BlockFluid.h @@ -7,14 +7,15 @@ -class cBlockFluidHandler : +class cBlockFluidHandler: public cBlockHandler { - typedef cBlockHandler super; + using Super = cBlockHandler; public: - cBlockFluidHandler(BLOCKTYPE a_BlockType) - : cBlockHandler(a_BlockType) + + cBlockFluidHandler(BLOCKTYPE a_BlockType): + Super(a_BlockType) { } @@ -61,7 +62,7 @@ public: break; } } - super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk); + Super::Check(a_ChunkInterface, a_PluginInterface, a_RelPos, a_Chunk); } @@ -96,14 +97,15 @@ public: -class cBlockLavaHandler : +class cBlockLavaHandler: public cBlockFluidHandler { - typedef cBlockFluidHandler super; + using Super = cBlockFluidHandler; + public: - cBlockLavaHandler(BLOCKTYPE a_BlockType) : - super(a_BlockType) + cBlockLavaHandler(BLOCKTYPE a_BlockType): + Super(a_BlockType) { } |