diff options
author | Mattes D <github@xoft.cz> | 2020-04-13 18:38:06 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-04-16 22:07:48 +0200 |
commit | 9ee47e59995f858ec531b3ee467f131594e4ba1f (patch) | |
tree | f005d8af4a0362d7eab8a96a71aca0d73275f8e1 /src/Items/ItemSapling.h | |
parent | Prevent crash when breeding (diff) | |
download | cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.gz cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.bz2 cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.lz cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.xz cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.tar.zst cuberite-9ee47e59995f858ec531b3ee467f131594e4ba1f.zip |
Diffstat (limited to 'src/Items/ItemSapling.h')
-rw-r--r-- | src/Items/ItemSapling.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Items/ItemSapling.h b/src/Items/ItemSapling.h index dbcb12be5..e8deb37a9 100644 --- a/src/Items/ItemSapling.h +++ b/src/Items/ItemSapling.h @@ -7,13 +7,15 @@ -class cItemSaplingHandler : public cItemHandler +class cItemSaplingHandler: + public cItemHandler { - typedef cItemHandler super; + using Super = cItemHandler; public: - cItemSaplingHandler(int a_ItemType) - : cItemHandler(a_ItemType) + + cItemSaplingHandler(int a_ItemType): + Super(a_ItemType) { } @@ -25,7 +27,7 @@ public: BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta ) override { - bool res = super::GetPlacementBlockTypeMeta( + bool res = Super::GetPlacementBlockTypeMeta( a_World, a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, |