diff options
Diffstat (limited to 'src/Blocks/BlockEnderChest.h')
-rw-r--r-- | src/Blocks/BlockEnderChest.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/Blocks/BlockEnderChest.h b/src/Blocks/BlockEnderChest.h index 2e0da0f17..d2fb6c983 100644 --- a/src/Blocks/BlockEnderChest.h +++ b/src/Blocks/BlockEnderChest.h @@ -6,24 +6,18 @@ -class cBlockEnderChestHandler final : - public cYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05> +class cBlockEnderChestHandler final : public cYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05> { using Super = cYawRotator<cBlockEntityHandler, 0x07, 0x03, 0x04, 0x02, 0x05>; -public: - + public: using Super::Super; -private: - + private: virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem * const a_Tool) const override { // Only drop something when mined with a pickaxe: - if ( - (a_Tool != nullptr) && - ItemCategory::IsPickaxe(a_Tool->m_ItemType) - ) + if ((a_Tool != nullptr) && ItemCategory::IsPickaxe(a_Tool->m_ItemType)) { // Only drop self when mined with a silk-touch pickaxe: if (a_Tool->m_Enchantments.GetLevel(cEnchantments::enchSilkTouch) > 0) @@ -36,5 +30,4 @@ private: return {}; } - }; |