From 4707784929f5f8fa19cb015deb6fa3f346b4775c Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 8 Nov 2013 21:03:51 +0100 Subject: Protocol 1.7: Fixed using entities. The mouse buttons were swapped. --- source/Protocol/Protocol17x.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source') diff --git a/source/Protocol/Protocol17x.cpp b/source/Protocol/Protocol17x.cpp index 7e4717c7a..a2b3a7a56 100644 --- a/source/Protocol/Protocol17x.cpp +++ b/source/Protocol/Protocol17x.cpp @@ -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)); } -- cgit v1.2.3