diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-30 20:04:49 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-30 20:04:49 +0200 |
commit | 83973520c8492225e5ea02ebfd0a5d47b7e35f85 (patch) | |
tree | 74f0a247304d40bb528bf5200e64876b75055bc9 /src/World.cpp | |
parent | Fixed 1.8 doors. (diff) | |
download | cuberite-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.cpp | 4 |
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; } |