diff options
author | changyong guo <guo1487@163.com> | 2018-06-30 23:37:10 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2018-06-30 23:37:10 +0200 |
commit | 06eb5cc70da76f6a95afa9c9a3d692ca39e39a76 (patch) | |
tree | fc7563f35ff096ae330bba77f3f3862049b5f5e3 | |
parent | fix block area rotation bug (#4243) (diff) | |
download | cuberite-06eb5cc70da76f6a95afa9c9a3d692ca39e39a76.tar cuberite-06eb5cc70da76f6a95afa9c9a3d692ca39e39a76.tar.gz cuberite-06eb5cc70da76f6a95afa9c9a3d692ca39e39a76.tar.bz2 cuberite-06eb5cc70da76f6a95afa9c9a3d692ca39e39a76.tar.lz cuberite-06eb5cc70da76f6a95afa9c9a3d692ca39e39a76.tar.xz cuberite-06eb5cc70da76f6a95afa9c9a3d692ca39e39a76.tar.zst cuberite-06eb5cc70da76f6a95afa9c9a3d692ca39e39a76.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockDropSpenser.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Blocks/BlockDropSpenser.h b/src/Blocks/BlockDropSpenser.h index e7cbc7e99..2700b416c 100644 --- a/src/Blocks/BlockDropSpenser.h +++ b/src/Blocks/BlockDropSpenser.h @@ -35,6 +35,13 @@ public: return true; } + /** Called when the drop / dispenser is convert into pickup, ignore meta data */ + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override + { + UNUSED(a_BlockMeta); + a_Pickups.push_back(cItem(m_BlockType, 1)); + } + virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override { // Bit 0x08 is a flag. Lowest three bits are position. 0x08 == 1000 |