diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-30 20:31:27 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-30 20:31:27 +0200 |
commit | 425df6b69490e29b367c62476a125aa84bbcbcc5 (patch) | |
tree | d6683f73a0e1f08385dbbd9fd0295624aa3b8eab /src/Blocks | |
parent | Fixed iron trapdoors (diff) | |
download | cuberite-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')
-rw-r--r-- | src/Blocks/BlockDirt.h | 10 |
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); + } } |