1
0

Protocol 1.7: Fixed using entities.

The mouse buttons were swapped.
This commit is contained in:
madmaxoft 2013-11-08 21:03:51 +01:00
parent 64412c1fe3
commit 4707784929

View File

@ -1342,8 +1342,7 @@ void cProtocol172::HandlePacketUseEntity(UInt32 a_RemainingBytes)
{
HANDLE_READ(ReadBEInt, int, EntityID);
HANDLE_READ(ReadByte, Byte, MouseButton);
// TODO: Verify that this works, wiki.vg has no info on the MouseButton values
m_Client->HandleUseEntity(EntityID, (MouseButton == 0));
m_Client->HandleUseEntity(EntityID, (MouseButton == 1));
}