summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-30 20:04:49 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-30 20:04:49 +0200
commit83973520c8492225e5ea02ebfd0a5d47b7e35f85 (patch)
tree74f0a247304d40bb528bf5200e64876b75055bc9 /src/World.cpp
parentFixed 1.8 doors. (diff)
downloadcuberite-83973520c8492225e5ea02ebfd0a5d47b7e35f85.tar
cuberite-83973520c8492225e5ea02ebfd0a5d47b7e35f85.tar.gz
cuberite-83973520c8492225e5ea02ebfd0a5d47b7e35f85.tar.bz2
cuberite-83973520c8492225e5ea02ebfd0a5d47b7e35f85.tar.lz
cuberite-83973520c8492225e5ea02ebfd0a5d47b7e35f85.tar.xz
cuberite-83973520c8492225e5ea02ebfd0a5d47b7e35f85.tar.zst
cuberite-83973520c8492225e5ea02ebfd0a5d47b7e35f85.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 6059b841f..a3c804b44 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2954,7 +2954,7 @@ bool cWorld::IsTrapdoorOpen(int a_BlockX, int a_BlockY, int a_BlockZ)
BLOCKTYPE Block;
NIBBLETYPE Meta;
GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, Block, Meta);
- if (Block != E_BLOCK_TRAPDOOR)
+ if ((Block != E_BLOCK_TRAPDOOR) && (Block != E_BLOCK_IRON_TRAPDOOR))
{
return false;
}
@@ -2971,7 +2971,7 @@ bool cWorld::SetTrapdoorOpen(int a_BlockX, int a_BlockY, int a_BlockZ, bool a_Op
BLOCKTYPE Block;
NIBBLETYPE Meta;
GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, Block, Meta);
- if (Block != E_BLOCK_TRAPDOOR)
+ if ((Block != E_BLOCK_TRAPDOOR) && (Block != E_BLOCK_IRON_TRAPDOOR))
{
return false;
}