summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDoor.h
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2015-06-13 15:00:20 +0200
committerLane Kolbly <lane@rscheme.org>2015-06-13 15:00:20 +0200
commitdafdded7d99e6d3dd20b236cc6a4cf41b58634f9 (patch)
tree2ae4cef0f40396b4260bde31c95ac50aa21a5cb6 /src/Blocks/BlockDoor.h
parentIf defined, not just if. (diff)
downloadcuberite-dafdded7d99e6d3dd20b236cc6a4cf41b58634f9.tar
cuberite-dafdded7d99e6d3dd20b236cc6a4cf41b58634f9.tar.gz
cuberite-dafdded7d99e6d3dd20b236cc6a4cf41b58634f9.tar.bz2
cuberite-dafdded7d99e6d3dd20b236cc6a4cf41b58634f9.tar.lz
cuberite-dafdded7d99e6d3dd20b236cc6a4cf41b58634f9.tar.xz
cuberite-dafdded7d99e6d3dd20b236cc6a4cf41b58634f9.tar.zst
cuberite-dafdded7d99e6d3dd20b236cc6a4cf41b58634f9.zip
Diffstat (limited to 'src/Blocks/BlockDoor.h')
-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));