summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLilypad.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-15 22:42:00 +0200
committermadmaxoft <github@xoft.cz>2014-07-15 22:42:00 +0200
commit3f8ec7699f0205a0346c32df49e2faf509995850 (patch)
treeb61f06d0001d3fd3238f80b5a2304595bbb28c6e /src/Blocks/BlockLilypad.h
parentRestructured cSplashPotionEntity code. (diff)
parentMerge pull request #1191 from Masy98/Blocks (diff)
downloadcuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar
cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.gz
cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.bz2
cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.lz
cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.xz
cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.tar.zst
cuberite-3f8ec7699f0205a0346c32df49e2faf509995850.zip
Diffstat (limited to 'src/Blocks/BlockLilypad.h')
-rw-r--r--src/Blocks/BlockLilypad.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/Blocks/BlockLilypad.h b/src/Blocks/BlockLilypad.h
index 2dd4ec768..53277caa5 100644
--- a/src/Blocks/BlockLilypad.h
+++ b/src/Blocks/BlockLilypad.h
@@ -8,18 +8,14 @@
class cBlockLilypadHandler :
- public cBlockHandler
+ public cClearMetaOnDrop<cBlockHandler>
{
+ typedef cClearMetaOnDrop<cBlockHandler> super;
public:
- cBlockLilypadHandler(BLOCKTYPE a_BlockType)
- : cBlockHandler(a_BlockType)
- {
- }
-
- virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
+
+ cBlockLilypadHandler(BLOCKTYPE a_BlockType) :
+ super(a_BlockType)
{
- // Reset meta to zero
- a_Pickups.push_back(cItem(E_BLOCK_LILY_PAD, 1, 0));
}
};