diff options
Diffstat (limited to 'src/Items/ItemRedstoneRepeater.h')
-rw-r--r-- | src/Items/ItemRedstoneRepeater.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Items/ItemRedstoneRepeater.h b/src/Items/ItemRedstoneRepeater.h index 6461d3ffd..2f20d294a 100644 --- a/src/Items/ItemRedstoneRepeater.h +++ b/src/Items/ItemRedstoneRepeater.h @@ -8,23 +8,20 @@ -class cItemRedstoneRepeaterHandler: +class cItemRedstoneRepeaterHandler final : public cItemHandler { using Super = cItemHandler; public: - cItemRedstoneRepeaterHandler(int a_ItemType): - Super(a_ItemType) - { - } + using Super::Super; - virtual bool CommitPlacement(cPlayer & a_Player, const cItem & a_HeldItem, const Vector3i a_PlacePosition, const eBlockFace a_ClickedBlockFace, const Vector3i a_CursorPosition) override + virtual bool CommitPlacement(cPlayer & a_Player, const cItem & a_HeldItem, const Vector3i a_PlacePosition, const eBlockFace a_ClickedBlockFace, const Vector3i a_CursorPosition) const override { return a_Player.PlaceBlock(a_PlacePosition, E_BLOCK_REDSTONE_REPEATER_OFF, cBlockRedstoneRepeaterHandler::YawToMetaData(a_Player.GetYaw())); } @@ -33,7 +30,7 @@ public: - virtual bool IsPlaceable() override + virtual bool IsPlaceable() const override { return true; } |