diff options
author | Freddie Wang <freddiew@qq.com> | 2015-02-05 08:10:46 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-02-21 14:22:05 +0100 |
commit | b165ab63633cd8c45d505a2fd2165807ea2b50ec (patch) | |
tree | fde5c20d2517290219b55dbc8103ae51e2ad8878 | |
parent | Merge pull request #1758 from mc-server/CryptoHashAPI (diff) | |
download | cuberite-b165ab63633cd8c45d505a2fd2165807ea2b50ec.tar cuberite-b165ab63633cd8c45d505a2fd2165807ea2b50ec.tar.gz cuberite-b165ab63633cd8c45d505a2fd2165807ea2b50ec.tar.bz2 cuberite-b165ab63633cd8c45d505a2fd2165807ea2b50ec.tar.lz cuberite-b165ab63633cd8c45d505a2fd2165807ea2b50ec.tar.xz cuberite-b165ab63633cd8c45d505a2fd2165807ea2b50ec.tar.zst cuberite-b165ab63633cd8c45d505a2fd2165807ea2b50ec.zip |
-rw-r--r-- | src/Items/ItemDoor.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Items/ItemDoor.h b/src/Items/ItemDoor.h index dacf286e5..6d8d97f6f 100644 --- a/src/Items/ItemDoor.h +++ b/src/Items/ItemDoor.h @@ -62,10 +62,10 @@ public: return false; } } - + // Check the two blocks that will get replaced by the door: - BLOCKTYPE LowerBlockType = a_World.GetBlock(a_BlockX, a_BlockY + 1, a_BlockZ); - BLOCKTYPE UpperBlockType = a_World.GetBlock(a_BlockX, a_BlockY + 2, a_BlockZ); + BLOCKTYPE LowerBlockType = a_World.GetBlock(a_BlockX, a_BlockY, a_BlockZ); + BLOCKTYPE UpperBlockType = a_World.GetBlock(a_BlockX, a_BlockY + 1, a_BlockZ); if ( !cBlockDoorHandler::CanReplaceBlock(LowerBlockType) || !cBlockDoorHandler::CanReplaceBlock(UpperBlockType)) @@ -106,7 +106,3 @@ public: return true; } } ; - - - - |