diff options
author | Mattes D <github@xoft.cz> | 2014-01-08 11:45:55 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-08 11:45:55 +0100 |
commit | 31f97608a7f93766d3223bd2874bcae5a5a2cac6 (patch) | |
tree | 6968c315a12f789080be1d2522242db29d2b729f | |
parent | ProtoProxy: Fixed compilation after the previous cByteBuffer changes. (diff) | |
download | cuberite-31f97608a7f93766d3223bd2874bcae5a5a2cac6.tar cuberite-31f97608a7f93766d3223bd2874bcae5a5a2cac6.tar.gz cuberite-31f97608a7f93766d3223bd2874bcae5a5a2cac6.tar.bz2 cuberite-31f97608a7f93766d3223bd2874bcae5a5a2cac6.tar.lz cuberite-31f97608a7f93766d3223bd2874bcae5a5a2cac6.tar.xz cuberite-31f97608a7f93766d3223bd2874bcae5a5a2cac6.tar.zst cuberite-31f97608a7f93766d3223bd2874bcae5a5a2cac6.zip |
-rw-r--r-- | Tools/ProtoProxy/Connection.cpp | 21 |
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; |