summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockDoor.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-20 10:51:33 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-20 10:51:33 +0100
commit9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f (patch)
tree389dad26fa4f30628f5f88245bb4b5a45b4f37c7 /source/Blocks/BlockDoor.h
parentRemoved chat messages from console (diff)
downloadcuberite-9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f.tar
cuberite-9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f.tar.gz
cuberite-9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f.tar.bz2
cuberite-9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f.tar.lz
cuberite-9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f.tar.xz
cuberite-9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f.tar.zst
cuberite-9d5a1a9f6d048c7e7bbb3dce5c113e87379ec76f.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockDoor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Blocks/BlockDoor.h b/source/Blocks/BlockDoor.h
index 37584895f..d2bb27901 100644
--- a/source/Blocks/BlockDoor.h
+++ b/source/Blocks/BlockDoor.h
@@ -37,7 +37,7 @@ public:
virtual bool CanBeAt(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override
{
- return a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ);
+ return (a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ) != E_BLOCK_AIR);
}
} ;