summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_11.cpp
diff options
context:
space:
mode:
author9caihezi <9caihezi@gmail.com>2018-01-08 14:37:10 +0100
committerpeterbell10 <peterbell10@live.co.uk>2018-01-08 14:37:10 +0100
commit4242431407459e91f725de9cb7fb1e2ffade216d (patch)
tree620e7f525183c768bee8014fae7e08ed61089b92 /src/Protocol/Protocol_1_11.cpp
parentreadme: Be explicit that Cuberite works with Java Edition Clients. (#4138) (diff)
downloadcuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.gz
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.bz2
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.lz
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.xz
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.tar.zst
cuberite-4242431407459e91f725de9cb7fb1e2ffade216d.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol_1_11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol_1_11.cpp b/src/Protocol/Protocol_1_11.cpp
index c0c8815e8..f5df4e646 100644
--- a/src/Protocol/Protocol_1_11.cpp
+++ b/src/Protocol/Protocol_1_11.cpp
@@ -550,7 +550,7 @@ void cProtocol_1_11_0::HandlePacketBlockPlace(cByteBuffer & a_ByteBuffer)
HANDLE_READ(a_ByteBuffer, ReadBEFloat, float, CursorX);
HANDLE_READ(a_ByteBuffer, ReadBEFloat, float, CursorY);
HANDLE_READ(a_ByteBuffer, ReadBEFloat, float, CursorZ);
- m_Client->HandleRightClick(BlockX, BlockY, BlockZ, FaceIntToBlockFace(Face), FloorC(CursorX * 16), FloorC(CursorY * 16), FloorC(CursorZ * 16), m_Client->GetPlayer()->GetEquippedItem());
+ m_Client->HandleRightClick(BlockX, BlockY, BlockZ, FaceIntToBlockFace(Face), FloorC(CursorX * 16), FloorC(CursorY * 16), FloorC(CursorZ * 16), HandIntToEnum(Hand));
}