summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-07-14 22:32:28 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-07-14 22:32:28 +0200
commit9d4d25cdbf2891708841830ca532e9d1f4163f32 (patch)
treeca17d40cf75a970b3577ce0cc7afb71ace7b4e86 /src/Blocks
parentMerge pull request #2346 from SamJBarney/TreeGrowthUpdate (diff)
parentFix duping doors (#1327) (diff)
downloadcuberite-9d4d25cdbf2891708841830ca532e9d1f4163f32.tar
cuberite-9d4d25cdbf2891708841830ca532e9d1f4163f32.tar.gz
cuberite-9d4d25cdbf2891708841830ca532e9d1f4163f32.tar.bz2
cuberite-9d4d25cdbf2891708841830ca532e9d1f4163f32.tar.lz
cuberite-9d4d25cdbf2891708841830ca532e9d1f4163f32.tar.xz
cuberite-9d4d25cdbf2891708841830ca532e9d1f4163f32.tar.zst
cuberite-9d4d25cdbf2891708841830ca532e9d1f4163f32.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockDoor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Blocks/BlockDoor.h b/src/Blocks/BlockDoor.h
index 4773e6f0a..79ed4f723 100644
--- a/src/Blocks/BlockDoor.h
+++ b/src/Blocks/BlockDoor.h
@@ -55,6 +55,10 @@ public:
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
+ if ((a_BlockMeta & 0x08) != 0) // is top part of door
+ {
+ return;
+ }
switch (m_BlockType)
{
case E_BLOCK_WOODEN_DOOR: