summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDirt.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-30 20:31:27 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-30 20:31:27 +0200
commit425df6b69490e29b367c62476a125aa84bbcbcc5 (patch)
treed6683f73a0e1f08385dbbd9fd0295624aa3b8eab /src/Blocks/BlockDirt.h
parentFixed iron trapdoors (diff)
downloadcuberite-425df6b69490e29b367c62476a125aa84bbcbcc5.tar
cuberite-425df6b69490e29b367c62476a125aa84bbcbcc5.tar.gz
cuberite-425df6b69490e29b367c62476a125aa84bbcbcc5.tar.bz2
cuberite-425df6b69490e29b367c62476a125aa84bbcbcc5.tar.lz
cuberite-425df6b69490e29b367c62476a125aa84bbcbcc5.tar.xz
cuberite-425df6b69490e29b367c62476a125aa84bbcbcc5.tar.zst
cuberite-425df6b69490e29b367c62476a125aa84bbcbcc5.zip
Diffstat (limited to 'src/Blocks/BlockDirt.h')
-rw-r--r--src/Blocks/BlockDirt.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h
index 60d81db72..b6d762dcf 100644
--- a/src/Blocks/BlockDirt.h
+++ b/src/Blocks/BlockDirt.h
@@ -21,7 +21,15 @@ public:
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
- a_Pickups.push_back(cItem(E_BLOCK_DIRT, 1, 0));
+ if (a_BlockMeta == E_META_DIRT_COARSE)
+ {
+ // Drop the coarse block (dirt, meta 1)
+ a_Pickups.Add(E_BLOCK_DIRT, 1, 1);
+ }
+ else
+ {
+ a_Pickups.Add(E_BLOCK_DIRT, 1, 0);
+ }
}