From 491e91dc88b7baf28b46ce072e616b99855f746b Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Tue, 19 Sep 2017 10:44:21 +0200 Subject: Leaves now drop with the correct meta when broken by a pickaxe with silk touch (#4034) --- src/Blocks/BlockHandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; } } -- cgit v1.2.3