diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-30 22:22:42 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-30 22:22:42 +0200 |
commit | d8e16f8c1fa771f77ef7505b45b9114b1f75aa61 (patch) | |
tree | 19094bb3577f1076c5644fcb77462cc727bdecfc /src/Blocks/BlockDoor.cpp | |
parent | Add SetOpen() and IsOpen() to BlockDoor.h and fix door redstone bug. (diff) | |
download | cuberite-d8e16f8c1fa771f77ef7505b45b9114b1f75aa61.tar cuberite-d8e16f8c1fa771f77ef7505b45b9114b1f75aa61.tar.gz cuberite-d8e16f8c1fa771f77ef7505b45b9114b1f75aa61.tar.bz2 cuberite-d8e16f8c1fa771f77ef7505b45b9114b1f75aa61.tar.lz cuberite-d8e16f8c1fa771f77ef7505b45b9114b1f75aa61.tar.xz cuberite-d8e16f8c1fa771f77ef7505b45b9114b1f75aa61.tar.zst cuberite-d8e16f8c1fa771f77ef7505b45b9114b1f75aa61.zip |
Diffstat (limited to 'src/Blocks/BlockDoor.cpp')
-rw-r--r-- | src/Blocks/BlockDoor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp index 479c68153..fb2d6f2dc 100644 --- a/src/Blocks/BlockDoor.cpp +++ b/src/Blocks/BlockDoor.cpp @@ -62,7 +62,7 @@ void cBlockDoorHandler::OnCancelRightClick(cChunkInterface & a_ChunkInterface, c a_WorldInterface.SendBlockTo(a_BlockX, a_BlockY, a_BlockZ, a_Player); NIBBLETYPE Meta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ); - if (Meta & 8) + if (Meta & 0x8) { // Current block is top of the door a_WorldInterface.SendBlockTo(a_BlockX, a_BlockY - 1, a_BlockZ, a_Player); |