summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-12-13 16:59:58 +0100
committerworktycho <work.tycho@gmail.com>2015-12-13 16:59:58 +0100
commit68105777fa0ad582a0695b75ba2f62d7df4b1060 (patch)
tree22eff71c64f428eb8418a40f469ffa02bb61d193 /src
parentMerge pull request #2743 from SafwatHalaby/wart (diff)
parentStrip meta from hopper on converting to pickup (diff)
downloadcuberite-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 'src')
-rw-r--r--src/Blocks/BlockHopper.h6
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);