summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-08 11:45:55 +0100
committerMattes D <github@xoft.cz>2014-01-08 11:45:55 +0100
commit31f97608a7f93766d3223bd2874bcae5a5a2cac6 (patch)
tree6968c315a12f789080be1d2522242db29d2b729f
parentProtoProxy: Fixed compilation after the previous cByteBuffer changes. (diff)
downloadcuberite-ProtoProxy_1.6.4_001.tar
cuberite-ProtoProxy_1.6.4_001.tar.gz
cuberite-ProtoProxy_1.6.4_001.tar.bz2
cuberite-ProtoProxy_1.6.4_001.tar.lz
cuberite-ProtoProxy_1.6.4_001.tar.xz
cuberite-ProtoProxy_1.6.4_001.tar.zst
cuberite-ProtoProxy_1.6.4_001.zip
-rw-r--r--Tools/ProtoProxy/Connection.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp
index c4776949e..3b50afbdc 100644
--- a/Tools/ProtoProxy/Connection.cpp
+++ b/Tools/ProtoProxy/Connection.cpp
@@ -1484,17 +1484,16 @@ bool cConnection::HandleServerEntityProperties(void)
HANDLE_SERVER_PACKET_READ(ReadBEUTF16String16, AString, Key);
HANDLE_SERVER_PACKET_READ(ReadBEDouble, double, Value);
Log(" \"%s\" = %f", Key.c_str(), Value);
- } // for i
-
- HANDLE_SERVER_PACKET_READ(ReadBEShort, short, ListLength);
- Log(" ListLength = %d", ListLength);
- for (int i = 0; i < ListLength; i++)
- {
- HANDLE_SERVER_PACKET_READ(ReadBEInt64, Int64, UUIDHi);
- HANDLE_SERVER_PACKET_READ(ReadBEInt64, Int64, UUIDLo);
- HANDLE_SERVER_PACKET_READ(ReadBEDouble, double, DblVal);
- HANDLE_SERVER_PACKET_READ(ReadByte, Byte, ByteVal);
- Log(" [%d] = {0x%08llx%08llx, %f, %i}", i, UUIDHi, UUIDLo, DblVal, ByteVal);
+ HANDLE_SERVER_PACKET_READ(ReadBEShort, short, ListLength);
+ Log(" ListLength = %d", ListLength);
+ for (int j = 0; j < ListLength; j++)
+ {
+ HANDLE_SERVER_PACKET_READ(ReadBEInt64, Int64, UUIDHi);
+ HANDLE_SERVER_PACKET_READ(ReadBEInt64, Int64, UUIDLo);
+ HANDLE_SERVER_PACKET_READ(ReadBEDouble, double, DblVal);
+ HANDLE_SERVER_PACKET_READ(ReadByte, Byte, ByteVal);
+ Log(" [%d] = {0x%08llx%08llx, %f, %i}", j, UUIDHi, UUIDLo, DblVal, ByteVal);
+ } // for j
} // for i
COPY_TO_CLIENT();
return true;