summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLilypad.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-07-15 00:59:24 +0200
committerTycho <work.tycho+git@gmail.com>2014-07-15 00:59:24 +0200
commit8fd636aa7235698263e3b85388a4f6373cbedb76 (patch)
tree1650b98907d93b3310ee8acfe76a83bc77b08cb6 /src/Blocks/BlockLilypad.h
parentAdded documentation (diff)
downloadcuberite-8fd636aa7235698263e3b85388a4f6373cbedb76.tar
cuberite-8fd636aa7235698263e3b85388a4f6373cbedb76.tar.gz
cuberite-8fd636aa7235698263e3b85388a4f6373cbedb76.tar.bz2
cuberite-8fd636aa7235698263e3b85388a4f6373cbedb76.tar.lz
cuberite-8fd636aa7235698263e3b85388a4f6373cbedb76.tar.xz
cuberite-8fd636aa7235698263e3b85388a4f6373cbedb76.tar.zst
cuberite-8fd636aa7235698263e3b85388a4f6373cbedb76.zip
Diffstat (limited to 'src/Blocks/BlockLilypad.h')
-rw-r--r--src/Blocks/BlockLilypad.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Blocks/BlockLilypad.h b/src/Blocks/BlockLilypad.h
index fc37f360c..2dd4ec768 100644
--- a/src/Blocks/BlockLilypad.h
+++ b/src/Blocks/BlockLilypad.h
@@ -8,14 +8,19 @@
class cBlockLilypadHandler :
- public cClearMetaOnDrop<cBlockHandler>
+ public cBlockHandler
{
public:
cBlockLilypadHandler(BLOCKTYPE a_BlockType)
- : cClearMetaOnDrop<cBlockHandler>(a_BlockType)
+ : cBlockHandler(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));
+ }
};