diff options
author | Bond-009 <bond.009@outlook.com> | 2017-09-19 10:44:21 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-09-19 10:44:21 +0200 |
commit | 491e91dc88b7baf28b46ce072e616b99855f746b (patch) | |
tree | 262bbc0557641aa60b429aa3edb973c0dded5204 | |
parent | Removed UTF-8 BOM (#4033) (diff) | |
download | cuberite-491e91dc88b7baf28b46ce072e616b99855f746b.tar cuberite-491e91dc88b7baf28b46ce072e616b99855f746b.tar.gz cuberite-491e91dc88b7baf28b46ce072e616b99855f746b.tar.bz2 cuberite-491e91dc88b7baf28b46ce072e616b99855f746b.tar.lz cuberite-491e91dc88b7baf28b46ce072e616b99855f746b.tar.xz cuberite-491e91dc88b7baf28b46ce072e616b99855f746b.tar.zst cuberite-491e91dc88b7baf28b46ce072e616b99855f746b.zip |
-rw-r--r-- | src/Blocks/BlockHandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockHandler.cpp b/src/Blocks/BlockHandler.cpp index 41b9780ac..1eaef9702 100644 --- a/src/Blocks/BlockHandler.cpp +++ b/src/Blocks/BlockHandler.cpp @@ -531,6 +531,12 @@ void cBlockHandler::DropBlock(cChunkInterface & a_ChunkInterface, cWorldInterfac Pickups.Add(m_BlockType, 1, 0); break; } + case E_BLOCK_LEAVES: + case E_BLOCK_NEW_LEAVES: + { + Pickups.Add(m_BlockType, 1, Meta & 0x03); + break; + } default: Pickups.Add(m_BlockType, 1, Meta); break; } } |