diff options
author | worktycho <work.tycho@gmail.com> | 2015-12-13 16:59:58 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-12-13 16:59:58 +0100 |
commit | 68105777fa0ad582a0695b75ba2f62d7df4b1060 (patch) | |
tree | 22eff71c64f428eb8418a40f469ffa02bb61d193 /src/Blocks/BlockHopper.h | |
parent | Merge pull request #2743 from SafwatHalaby/wart (diff) | |
parent | Strip meta from hopper on converting to pickup (diff) | |
download | cuberite-68105777fa0ad582a0695b75ba2f62d7df4b1060.tar cuberite-68105777fa0ad582a0695b75ba2f62d7df4b1060.tar.gz cuberite-68105777fa0ad582a0695b75ba2f62d7df4b1060.tar.bz2 cuberite-68105777fa0ad582a0695b75ba2f62d7df4b1060.tar.lz cuberite-68105777fa0ad582a0695b75ba2f62d7df4b1060.tar.xz cuberite-68105777fa0ad582a0695b75ba2f62d7df4b1060.tar.zst cuberite-68105777fa0ad582a0695b75ba2f62d7df4b1060.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockHopper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockHopper.h b/src/Blocks/BlockHopper.h index 22f800f28..0c0871fdd 100644 --- a/src/Blocks/BlockHopper.h +++ b/src/Blocks/BlockHopper.h @@ -53,6 +53,12 @@ public: return a_Meta; } + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override + { + // Reset meta to 0 + a_Pickups.push_back(cItem(m_BlockType, 1, 0)); + } + virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override { UNUSED(a_Meta); |