diff options
Diffstat (limited to 'src/Blocks/BlockNoteBlock.h')
-rw-r--r-- | src/Blocks/BlockNoteBlock.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/Blocks/BlockNoteBlock.h b/src/Blocks/BlockNoteBlock.h index f5ada0d2d..f2980e0c2 100644 --- a/src/Blocks/BlockNoteBlock.h +++ b/src/Blocks/BlockNoteBlock.h @@ -8,17 +8,14 @@ -class cBlockNoteBlockHandler final : - public cBlockEntityHandler +class cBlockNoteBlockHandler final : public cBlockEntityHandler { using Super = cBlockEntityHandler; -public: - + public: using Super::Super; -private: - + private: virtual void OnDigging( cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, @@ -26,12 +23,15 @@ private: const Vector3i a_BlockPos ) const override { - a_WorldInterface.DoWithBlockEntityAt(a_BlockPos, [](cBlockEntity & a_BlockEntity) - { - ASSERT(a_BlockEntity.GetBlockType() == E_BLOCK_NOTE_BLOCK); - - static_cast<cNoteEntity &>(a_BlockEntity).MakeSound(); - return false; - }); + a_WorldInterface.DoWithBlockEntityAt( + a_BlockPos, + [](cBlockEntity & a_BlockEntity) + { + ASSERT(a_BlockEntity.GetBlockType() == E_BLOCK_NOTE_BLOCK); + + static_cast<cNoteEntity &>(a_BlockEntity).MakeSound(); + return false; + } + ); } }; |