summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-06-13 22:55:36 +0200
committerworktycho <work.tycho@gmail.com>2015-06-13 22:55:36 +0200
commitd961693020cdd07d45cc025881019f2181191f3b (patch)
tree5a5a58568d645776a653abd501e93a86e9ce0c70 /src
parentMerge pull request #2240 from cuberite/UpdatedPrefabs (diff)
parentFixed typo in BlockDoor.h (diff)
downloadcuberite-d961693020cdd07d45cc025881019f2181191f3b.tar
cuberite-d961693020cdd07d45cc025881019f2181191f3b.tar.gz
cuberite-d961693020cdd07d45cc025881019f2181191f3b.tar.bz2
cuberite-d961693020cdd07d45cc025881019f2181191f3b.tar.lz
cuberite-d961693020cdd07d45cc025881019f2181191f3b.tar.xz
cuberite-d961693020cdd07d45cc025881019f2181191f3b.tar.zst
cuberite-d961693020cdd07d45cc025881019f2181191f3b.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockDoor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockDoor.h b/src/Blocks/BlockDoor.h
index 9332e6728..4773e6f0a 100644
--- a/src/Blocks/BlockDoor.h
+++ b/src/Blocks/BlockDoor.h
@@ -242,7 +242,7 @@ public:
if ((Meta & 0x08) != 0)
{
// The coords are pointing at the top part of the door
- if (a_BlockX > 0)
+ if (a_BlockY > 0)
{
NIBBLETYPE DownMeta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY - 1, a_BlockZ);
return static_cast<NIBBLETYPE>((DownMeta & 0x07) | 0x08 | (Meta << 4));