summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-12-02 04:40:12 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-12-02 04:40:12 +0100
commit458eff560b8b25425a292a9543f1319d5ebcda32 (patch)
tree39da9bfe02f30baab404dade925154740f3995a3 /src
parentFixed compiler warnings in LightingThread.cpp. (diff)
downloadcuberite-458eff560b8b25425a292a9543f1319d5ebcda32.tar
cuberite-458eff560b8b25425a292a9543f1319d5ebcda32.tar.gz
cuberite-458eff560b8b25425a292a9543f1319d5ebcda32.tar.bz2
cuberite-458eff560b8b25425a292a9543f1319d5ebcda32.tar.lz
cuberite-458eff560b8b25425a292a9543f1319d5ebcda32.tar.xz
cuberite-458eff560b8b25425a292a9543f1319d5ebcda32.tar.zst
cuberite-458eff560b8b25425a292a9543f1319d5ebcda32.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 746e1c127..27a8fae3f 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1152,9 +1152,28 @@ void cProtocol172::HandlePacketBlockPlace(UInt32 a_RemainingBytes)
HANDLE_READ(ReadByte, Byte, BlockY);
HANDLE_READ(ReadBEInt, int, BlockZ);
HANDLE_READ(ReadByte, Byte, Face);
+ HANDLE_READ(ReadBEShort, short, ItemID);
+
+ // Currently discarding extra info until it is decided what we do with it
+ if (ItemID != -1)
+ {
+ HANDLE_READ(ReadByte, Byte, Count);
+ HANDLE_READ(ReadBEShort, short, ItemDamage);
+ HANDLE_READ(ReadBEShort, short, MetaLen);
+ if (MetaLen != -1)
+ {
+ while(MetaLen--)
+ {
+ HANDLE_READ(ReadByte, Byte, MetaStuff);
+ }
+ }
+
+ }
+
HANDLE_READ(ReadByte, Byte, CursorX);
HANDLE_READ(ReadByte, Byte, CursorY);
HANDLE_READ(ReadByte, Byte, CursorZ);
+ printf("Read %i %i %i %i %i %i %i\n", BlockX, BlockY, BlockZ, Face, CursorX, CursorY, CursorZ);
m_Client->HandleRightClick(BlockX, BlockY, BlockZ, Face, CursorX, CursorY, CursorZ, m_Client->GetPlayer()->GetEquippedItem());
}