diff options
author | Mat <mail@mathias.is> | 2020-03-23 21:07:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 21:07:08 +0100 |
commit | 0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd (patch) | |
tree | 08767102c2360e78aada2ef3c76bea95ad4a909f /src/Blocks/BlockRedstoneRepeater.h | |
parent | Enable functional packets in 1.13 (diff) | |
download | cuberite-0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd.tar cuberite-0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd.tar.gz cuberite-0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd.tar.bz2 cuberite-0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd.tar.lz cuberite-0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd.tar.xz cuberite-0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd.tar.zst cuberite-0d0d019bbe6d7d6ce80056a6f249e69d5bb865bd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockRedstoneRepeater.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Blocks/BlockRedstoneRepeater.h b/src/Blocks/BlockRedstoneRepeater.h index 6e749bd57..de55debf1 100644 --- a/src/Blocks/BlockRedstoneRepeater.h +++ b/src/Blocks/BlockRedstoneRepeater.h @@ -12,9 +12,9 @@ class cBlockRedstoneRepeaterHandler: - public cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true>> + public cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true> { - using super = cClearMetaOnDrop<cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true>>; + using super = cMetaRotator<cBlockHandler, 0x03, 0x00, 0x01, 0x02, 0x03, true>; public: @@ -32,6 +32,7 @@ public: { a_BlockType = m_BlockType; a_BlockMeta = RepeaterRotationToMetaData(a_Player.GetYaw()); + return true; } @@ -78,6 +79,11 @@ public: return false; } + virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) override + { + return cItem(E_ITEM_REDSTONE_REPEATER, 1, 0); + } + inline static NIBBLETYPE RepeaterRotationToMetaData(double a_Rotation) { a_Rotation += 90 + 45; // So its not aligned with axis |