diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-28 23:52:04 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-28 23:52:04 +0100 |
commit | aee1f8f9d13c501a53e3636596c09dbce0f289bb (patch) | |
tree | b632c13bacdf684e8adb854559331942b7176401 /src | |
parent | Fixed a potential crash (diff) | |
download | cuberite-aee1f8f9d13c501a53e3636596c09dbce0f289bb.tar cuberite-aee1f8f9d13c501a53e3636596c09dbce0f289bb.tar.gz cuberite-aee1f8f9d13c501a53e3636596c09dbce0f289bb.tar.bz2 cuberite-aee1f8f9d13c501a53e3636596c09dbce0f289bb.tar.lz cuberite-aee1f8f9d13c501a53e3636596c09dbce0f289bb.tar.xz cuberite-aee1f8f9d13c501a53e3636596c09dbce0f289bb.tar.zst cuberite-aee1f8f9d13c501a53e3636596c09dbce0f289bb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ClientHandle.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 2c47faa65..443c248b0 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -941,6 +941,8 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e } return; } + + m_NumBlockChangeInteractionsThisTick++; if (!CheckBlockInteractionsRate()) { @@ -1053,8 +1055,8 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, e cBlockSlabHandler::IsAnySlabType(EquippedBlock) && // Is the player placing another slab? ((ClickedBlockMeta & 0x07) == EquippedBlockDamage) && // Is it the same slab type? ( - (a_BlockFace == BLOCK_FACE_TOP) || // Clicking the top of a bottom slab - (a_BlockFace == BLOCK_FACE_BOTTOM) // Clicking the bottom of a top slab + (a_BlockFace == BLOCK_FACE_TOP) || // Clicking the top of a bottom slab + (a_BlockFace == BLOCK_FACE_BOTTOM) // Clicking the bottom of a top slab ) ) { |