summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-07-15 01:01:16 +0200
committerTycho <work.tycho+git@gmail.com>2014-07-15 01:01:16 +0200
commit0e5fa2662aa2b559335a25ee78cd086f795be79e (patch)
treefe0703b5d7d2cf82dbe90319254ed9b33f289f8e /src/Blocks
parentRevert "Converted some blockhandlers to use cClearMetaOnDrop" (diff)
downloadcuberite-0e5fa2662aa2b559335a25ee78cd086f795be79e.tar
cuberite-0e5fa2662aa2b559335a25ee78cd086f795be79e.tar.gz
cuberite-0e5fa2662aa2b559335a25ee78cd086f795be79e.tar.bz2
cuberite-0e5fa2662aa2b559335a25ee78cd086f795be79e.tar.lz
cuberite-0e5fa2662aa2b559335a25ee78cd086f795be79e.tar.xz
cuberite-0e5fa2662aa2b559335a25ee78cd086f795be79e.tar.zst
cuberite-0e5fa2662aa2b559335a25ee78cd086f795be79e.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockLilypad.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Blocks/BlockLilypad.h b/src/Blocks/BlockLilypad.h
index 2dd4ec768..c25f150c7 100644
--- a/src/Blocks/BlockLilypad.h
+++ b/src/Blocks/BlockLilypad.h
@@ -8,19 +8,13 @@
class cBlockLilypadHandler :
- public cBlockHandler
+ public cClearMetaOnDrop<cBlockHandler>
{
public:
cBlockLilypadHandler(BLOCKTYPE a_BlockType)
- : cBlockHandler(a_BlockType)
+ : cClearMetaOnDrop<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));
- }
};