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