1
0

Fixed block interaction rate check

This commit is contained in:
Tiger Wang 2014-03-28 22:52:04 +00:00
parent 8ece214920
commit aee1f8f9d1

View File

@ -941,6 +941,8 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, e
} }
return; return;
} }
m_NumBlockChangeInteractionsThisTick++;
if (!CheckBlockInteractionsRate()) 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? cBlockSlabHandler::IsAnySlabType(EquippedBlock) && // Is the player placing another slab?
((ClickedBlockMeta & 0x07) == EquippedBlockDamage) && // Is it the same slab type? ((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_TOP) || // Clicking the top of a bottom slab
(a_BlockFace == BLOCK_FACE_BOTTOM) // Clicking the bottom of a top slab (a_BlockFace == BLOCK_FACE_BOTTOM) // Clicking the bottom of a top slab
) )
) )
{ {