diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-07-14 21:50:56 +0200 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-07-14 21:50:56 +0200 |
commit | 333f4f982cbd24ffcb376594eddef439b3f05e9e (patch) | |
tree | c5567d23eee76e38d41cf828d1f642ab271cbd91 /src/Blocks/BlockRedstoneRepeater.h | |
parent | Simplified ClearMetaOnDrop (diff) | |
download | cuberite-333f4f982cbd24ffcb376594eddef439b3f05e9e.tar cuberite-333f4f982cbd24ffcb376594eddef439b3f05e9e.tar.gz cuberite-333f4f982cbd24ffcb376594eddef439b3f05e9e.tar.bz2 cuberite-333f4f982cbd24ffcb376594eddef439b3f05e9e.tar.lz cuberite-333f4f982cbd24ffcb376594eddef439b3f05e9e.tar.xz cuberite-333f4f982cbd24ffcb376594eddef439b3f05e9e.tar.zst cuberite-333f4f982cbd24ffcb376594eddef439b3f05e9e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockRedstoneRepeater.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Blocks/BlockRedstoneRepeater.h b/src/Blocks/BlockRedstoneRepeater.h index fe6cd21b9..1e9c00f2e 100644 --- a/src/Blocks/BlockRedstoneRepeater.h +++ b/src/Blocks/BlockRedstoneRepeater.h @@ -4,16 +4,16 @@ #include "BlockHandler.h" #include "Chunk.h" #include "MetaRotator.h" - +#include "ClearMetaOnDrop.h" class cBlockRedstoneRepeaterHandler : - public cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true> + public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true> > { public: cBlockRedstoneRepeaterHandler(BLOCKTYPE a_BlockType) - : cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true>(a_BlockType) + : cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true> >(a_BlockType) { } @@ -44,13 +44,6 @@ public: } - virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override - { - // Reset meta to 0 - a_Pickups.push_back(cItem(E_ITEM_REDSTONE_REPEATER, 1, 0)); - } - - virtual bool IsUseable(void) override { return true; |