diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 13:43:57 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-02 13:43:57 +0100 |
commit | 275035eb70e7a39f408da8078bd5167758abedef (patch) | |
tree | 8171dea428d4e74d7c85f995a40b0c15f2a10a27 /src/Blocks/BlockTorch.h | |
parent | Merge pull request #617 from UltraCoderRU/master (diff) | |
download | cuberite-275035eb70e7a39f408da8078bd5167758abedef.tar cuberite-275035eb70e7a39f408da8078bd5167758abedef.tar.gz cuberite-275035eb70e7a39f408da8078bd5167758abedef.tar.bz2 cuberite-275035eb70e7a39f408da8078bd5167758abedef.tar.lz cuberite-275035eb70e7a39f408da8078bd5167758abedef.tar.xz cuberite-275035eb70e7a39f408da8078bd5167758abedef.tar.zst cuberite-275035eb70e7a39f408da8078bd5167758abedef.zip |
Diffstat (limited to 'src/Blocks/BlockTorch.h')
-rw-r--r-- | src/Blocks/BlockTorch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Blocks/BlockTorch.h b/src/Blocks/BlockTorch.h index faba9c4f5..437449820 100644 --- a/src/Blocks/BlockTorch.h +++ b/src/Blocks/BlockTorch.h @@ -38,9 +38,10 @@ public: else { // Not top or bottom faces, try to preserve whatever face was clicked - AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, true); + AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, true); // Set to clicked block if (!CanBePlacedOn(a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ), a_BlockFace)) { + AddFaceDirection(a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, false); // Reset to torch block // Torch couldn't be placed on whatever face was clicked, last ditch resort - find another face a_BlockFace = FindSuitableFace(a_World, a_BlockX, a_BlockY, a_BlockZ); if (a_BlockFace == BLOCK_FACE_NONE) |