diff options
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemSpawnEgg.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Items/ItemSpawnEgg.h b/src/Items/ItemSpawnEgg.h index 8408bd815..ff84c54dc 100644 --- a/src/Items/ItemSpawnEgg.h +++ b/src/Items/ItemSpawnEgg.h @@ -9,21 +9,14 @@ -class cItemSpawnEggHandler: +class cItemSpawnEggHandler final: public cItemHandler { using Super = cItemHandler; public: - cItemSpawnEggHandler(int a_ItemType): - Super(a_ItemType) - { - } - - - - + using Super::Super; virtual bool OnItemUse( cWorld * a_World, @@ -32,7 +25,7 @@ public: const cItem & a_HeldItem, const Vector3i a_ClickedBlockPos, eBlockFace a_ClickedBlockFace - ) override + ) const override { // Must click a valid block: if (a_ClickedBlockFace < 0) |