summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockHandler.cpp
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2017-09-19 10:44:21 +0200
committerAlexander Harkness <me@bearbin.net>2017-09-19 10:44:21 +0200
commit491e91dc88b7baf28b46ce072e616b99855f746b (patch)
tree262bbc0557641aa60b429aa3edb973c0dded5204 /src/Blocks/BlockHandler.cpp
parentRemoved UTF-8 BOM (#4033) (diff)
downloadcuberite-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
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockHandler.cpp6
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;
}
}