summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemLeaves.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Items/ItemLeaves.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Items/ItemLeaves.h b/src/Items/ItemLeaves.h
index abe2a76cf..b4795bf29 100644
--- a/src/Items/ItemLeaves.h
+++ b/src/Items/ItemLeaves.h
@@ -7,23 +7,20 @@
-class cItemLeavesHandler:
+class cItemLeavesHandler final :
public cItemHandler
{
using Super = cItemHandler;
public:
- cItemLeavesHandler(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,