From 0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd Mon Sep 17 00:00:00 2001 From: Mat Date: Mon, 23 Mar 2020 22:07:08 +0200 Subject: Fix certain item drops (#4536) * Fix certain item drops * Revert unwanted changes * Revert unwanted changes * Revert change * Style fixes --- src/Blocks/BlockFlowerPot.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/Blocks/BlockFlowerPot.h') diff --git a/src/Blocks/BlockFlowerPot.h b/src/Blocks/BlockFlowerPot.h index 36c71df5b..b552e2c81 100644 --- a/src/Blocks/BlockFlowerPot.h +++ b/src/Blocks/BlockFlowerPot.h @@ -8,9 +8,9 @@ class cBlockFlowerPotHandler : - public cClearMetaOnDrop + public cBlockEntityHandler { - using super = cClearMetaOnDrop; + using super = cBlockEntityHandler; public: @@ -23,6 +23,15 @@ public: + virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) override + { + return cItem(E_ITEM_FLOWER_POT, 1, 0); + } + + + + + virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override { UNUSED(a_Meta); -- cgit v1.2.3