diff options
author | madmaxoft <github@xoft.cz> | 2014-06-09 21:20:26 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-06-09 21:20:26 +0200 |
commit | dcc71a3b7b08eec0d2965e495a49d0a03b9a8257 (patch) | |
tree | 258a4afa5a8ec6648915a2e9378ef402532f43ce /src/Blocks/BlockDoor.cpp | |
parent | docs/Generator: Fixed typo. (diff) | |
parent | Moved the IsDoor check before the meta get. (diff) | |
download | cuberite-dcc71a3b7b08eec0d2965e495a49d0a03b9a8257.tar cuberite-dcc71a3b7b08eec0d2965e495a49d0a03b9a8257.tar.gz cuberite-dcc71a3b7b08eec0d2965e495a49d0a03b9a8257.tar.bz2 cuberite-dcc71a3b7b08eec0d2965e495a49d0a03b9a8257.tar.lz cuberite-dcc71a3b7b08eec0d2965e495a49d0a03b9a8257.tar.xz cuberite-dcc71a3b7b08eec0d2965e495a49d0a03b9a8257.tar.zst cuberite-dcc71a3b7b08eec0d2965e495a49d0a03b9a8257.zip |
Diffstat (limited to '')
-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); |