diff options
Diffstat (limited to 'src/Items/ItemJackOLantern.h')
-rw-r--r-- | src/Items/ItemJackOLantern.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/Items/ItemJackOLantern.h b/src/Items/ItemJackOLantern.h index acd233701..0432b2ecc 100644 --- a/src/Items/ItemJackOLantern.h +++ b/src/Items/ItemJackOLantern.h @@ -8,20 +8,27 @@ -class cItemJackOLanternHandler final : - public cItemHandler +class cItemJackOLanternHandler final : public cItemHandler { using Super = cItemHandler; -public: - + public: using Super::Super; -private: - - virtual bool CommitPlacement(cPlayer & a_Player, const cItem & a_HeldItem, const Vector3i a_PlacePosition, const eBlockFace a_ClickedBlockFace, const Vector3i a_CursorPosition) const override + private: + virtual bool CommitPlacement( + cPlayer & a_Player, + const cItem & a_HeldItem, + const Vector3i a_PlacePosition, + const eBlockFace a_ClickedBlockFace, + const Vector3i a_CursorPosition + ) const override { // Re-use the pumpkin converter for lanterns: - return a_Player.PlaceBlock(a_PlacePosition, E_BLOCK_JACK_O_LANTERN, cBlockPumpkinHandler::YawToMetaData(a_Player.GetYaw())); + return a_Player.PlaceBlock( + a_PlacePosition, + E_BLOCK_JACK_O_LANTERN, + cBlockPumpkinHandler::YawToMetaData(a_Player.GetYaw()) + ); } }; |