From 9ee47e59995f858ec531b3ee467f131594e4ba1f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 13 Apr 2020 18:38:06 +0200 Subject: Using Super. --- src/Blocks/Mixins.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Blocks/Mixins.h') diff --git a/src/Blocks/Mixins.h b/src/Blocks/Mixins.h index 1ee2876d3..cddbb4850 100644 --- a/src/Blocks/Mixins.h +++ b/src/Blocks/Mixins.h @@ -184,11 +184,11 @@ template < class cYawRotator: public cMetaRotator { - using super = cMetaRotator; + using Super = cMetaRotator; public: cYawRotator(BLOCKTYPE a_BlockType): - super(a_BlockType) + Super(a_BlockType) {} @@ -203,7 +203,7 @@ public: ) override { NIBBLETYPE BaseMeta; - if (!super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta)) + if (!Super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta)) { return false; } @@ -258,11 +258,11 @@ template < class cPitchYawRotator: public cYawRotator { - using super = cYawRotator; + using Super = cYawRotator; public: cPitchYawRotator(BLOCKTYPE a_BlockType): - super(a_BlockType) + Super(a_BlockType) {} @@ -277,7 +277,7 @@ public: ) override { NIBBLETYPE BaseMeta; - if (!super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta)) + if (!Super::GetPlacementBlockTypeMeta(a_ChunkInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, BaseMeta)) { return false; } @@ -319,6 +319,6 @@ public: return Down; } - return super::YawToMetaData(a_Rotation); + return Super::YawToMetaData(a_Rotation); } }; -- cgit v1.2.3