diff options
author | madmaxoft <github@xoft.cz> | 2014-07-15 14:44:18 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-15 14:44:18 +0200 |
commit | 639dfdb67db01248579910955061f5ca8ce49be8 (patch) | |
tree | f2a7636189fac9695620c13cd1bf67a10ead969b /src/Blocks/BlockLilypad.h | |
parent | Merge pull request #1188 from mc-server/FindClosestPlayerFix (diff) | |
parent | Added super typedef (diff) | |
download | cuberite-639dfdb67db01248579910955061f5ca8ce49be8.tar cuberite-639dfdb67db01248579910955061f5ca8ce49be8.tar.gz cuberite-639dfdb67db01248579910955061f5ca8ce49be8.tar.bz2 cuberite-639dfdb67db01248579910955061f5ca8ce49be8.tar.lz cuberite-639dfdb67db01248579910955061f5ca8ce49be8.tar.xz cuberite-639dfdb67db01248579910955061f5ca8ce49be8.tar.zst cuberite-639dfdb67db01248579910955061f5ca8ce49be8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockLilypad.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Blocks/BlockLilypad.h b/src/Blocks/BlockLilypad.h index 2dd4ec768..1320174fc 100644 --- a/src/Blocks/BlockLilypad.h +++ b/src/Blocks/BlockLilypad.h @@ -8,19 +8,14 @@ class cBlockLilypadHandler : - public cBlockHandler + public cClearMetaOnDrop<cBlockHandler> { +typedef cClearMetaOnDrop<cBlockHandler> super; public: cBlockLilypadHandler(BLOCKTYPE a_BlockType) - : cBlockHandler(a_BlockType) + : super(a_BlockType) { } - - virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override - { - // Reset meta to zero - a_Pickups.push_back(cItem(E_BLOCK_LILY_PAD, 1, 0)); - } }; |