summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemItemFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Items/ItemItemFrame.h')
-rw-r--r--src/Items/ItemItemFrame.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Items/ItemItemFrame.h b/src/Items/ItemItemFrame.h
index 0f7a4ee8c..70923c549 100644
--- a/src/Items/ItemItemFrame.h
+++ b/src/Items/ItemItemFrame.h
@@ -9,17 +9,14 @@
-class cItemItemFrameHandler:
+class cItemItemFrameHandler final:
public cItemHandler
{
using Super = cItemHandler;
public:
- cItemItemFrameHandler(int a_ItemType):
- Super(a_ItemType)
- {
- }
+ using Super::Super;
@@ -32,7 +29,7 @@ public:
const cItem & a_HeldItem,
const Vector3i a_ClickedBlockPos,
eBlockFace a_ClickedBlockFace
- ) override
+ ) const override
{
// Can only place on a side face:
if ((a_ClickedBlockFace == BLOCK_FACE_NONE) || (a_ClickedBlockFace == BLOCK_FACE_YP) || (a_ClickedBlockFace == BLOCK_FACE_YM))