diff options
Diffstat (limited to 'src/Blocks/BlockCauldron.h')
-rw-r--r-- | src/Blocks/BlockCauldron.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Blocks/BlockCauldron.h b/src/Blocks/BlockCauldron.h index a359533af..5b45b2828 100644 --- a/src/Blocks/BlockCauldron.h +++ b/src/Blocks/BlockCauldron.h @@ -8,9 +8,9 @@ class cBlockCauldronHandler : - public cClearMetaOnDrop<cBlockHandler> + public cBlockHandler { - using super = cClearMetaOnDrop<cBlockHandler>; + using super = cBlockHandler; public: @@ -19,6 +19,11 @@ public: { } + virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) override + { + return cItem(E_ITEM_CAULDRON, 1, 0); + } + virtual bool OnUse(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ) override { NIBBLETYPE Meta = a_ChunkInterface.GetBlockMeta({a_BlockX, a_BlockY, a_BlockZ}); |