diff options
author | Mattes D <github@xoft.cz> | 2013-12-02 20:38:22 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-12-02 20:38:22 +0100 |
commit | 1c384ec1d748b19a00f8d26985bd209a8a45a131 (patch) | |
tree | 6edc2dd2770d64a0df0bb72f975ae62b6a72c5f3 /src/ClientHandle.cpp | |
parent | Fixed compiler warnings in LightingThread.cpp. (diff) | |
parent | Removed stray printf, again. (diff) | |
download | cuberite-1c384ec1d748b19a00f8d26985bd209a8a45a131.tar cuberite-1c384ec1d748b19a00f8d26985bd209a8a45a131.tar.gz cuberite-1c384ec1d748b19a00f8d26985bd209a8a45a131.tar.bz2 cuberite-1c384ec1d748b19a00f8d26985bd209a8a45a131.tar.lz cuberite-1c384ec1d748b19a00f8d26985bd209a8a45a131.tar.xz cuberite-1c384ec1d748b19a00f8d26985bd209a8a45a131.tar.zst cuberite-1c384ec1d748b19a00f8d26985bd209a8a45a131.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index f9a48003e..95d8f23e5 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -887,6 +887,15 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, c ) { // Coordinates at CLICKED block, don't move them anywhere + if((ClickedBlockMeta & 0x08) && (a_BlockFace == BLOCK_FACE_TOP)) + { + ++a_BlockY; + } + else if (!(ClickedBlockMeta & 0x08) && (a_BlockFace == BLOCK_FACE_BOTTOM)) + { + --a_BlockY; + } + World->GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, ClickedBlock, ClickedBlockMeta); } else { |