Merge pull request #392 from SamJBarney/master
Fixed 1.7 slab and stair placement.
This commit is contained in:
commit
1c384ec1d7
@ -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
|
||||
{
|
||||
|
@ -1152,6 +1152,9 @@ void cProtocol172::HandlePacketBlockPlace(UInt32 a_RemainingBytes)
|
||||
HANDLE_READ(ReadByte, Byte, BlockY);
|
||||
HANDLE_READ(ReadBEInt, int, BlockZ);
|
||||
HANDLE_READ(ReadByte, Byte, Face);
|
||||
cItem Item;
|
||||
ReadItem(Item);
|
||||
|
||||
HANDLE_READ(ReadByte, Byte, CursorX);
|
||||
HANDLE_READ(ReadByte, Byte, CursorY);
|
||||
HANDLE_READ(ReadByte, Byte, CursorZ);
|
||||
|
Loading…
Reference in New Issue
Block a user