summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDoor.h
diff options
context:
space:
mode:
authormmdk95 <ikbenmarwijnn@gmail.com>2015-07-14 01:09:05 +0200
committermmdk95 <ikbenmarwijnn@gmail.com>2015-07-14 18:42:40 +0200
commitc12704183bd7b0453b57c2be299f08f680aa3957 (patch)
tree30b63dbe4165e5b0b0a214d51fe75c352c90bd05 /src/Blocks/BlockDoor.h
parentMerge pull request #2344 from bibo38/make_ptr (diff)
downloadcuberite-c12704183bd7b0453b57c2be299f08f680aa3957.tar
cuberite-c12704183bd7b0453b57c2be299f08f680aa3957.tar.gz
cuberite-c12704183bd7b0453b57c2be299f08f680aa3957.tar.bz2
cuberite-c12704183bd7b0453b57c2be299f08f680aa3957.tar.lz
cuberite-c12704183bd7b0453b57c2be299f08f680aa3957.tar.xz
cuberite-c12704183bd7b0453b57c2be299f08f680aa3957.tar.zst
cuberite-c12704183bd7b0453b57c2be299f08f680aa3957.zip
Diffstat (limited to 'src/Blocks/BlockDoor.h')
-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: