summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDoor.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-06-09 21:20:26 +0200
committermadmaxoft <github@xoft.cz>2014-06-09 21:20:26 +0200
commitdcc71a3b7b08eec0d2965e495a49d0a03b9a8257 (patch)
tree258a4afa5a8ec6648915a2e9378ef402532f43ce /src/Blocks/BlockDoor.cpp
parentdocs/Generator: Fixed typo. (diff)
parentMoved the IsDoor check before the meta get. (diff)
downloadcuberite-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.cpp2
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);