diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-07-30 18:55:19 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2017-07-30 18:55:19 +0200 |
commit | 8fbb9dbf53105fc7379b5696baf2363777a29691 (patch) | |
tree | 558f35cad855cf489d4aa0ef0cd206bca929124e /src/Protocol | |
parent | Added anvil enchantment handling. (#3857) (diff) | |
download | cuberite-8fbb9dbf53105fc7379b5696baf2363777a29691.tar cuberite-8fbb9dbf53105fc7379b5696baf2363777a29691.tar.gz cuberite-8fbb9dbf53105fc7379b5696baf2363777a29691.tar.bz2 cuberite-8fbb9dbf53105fc7379b5696baf2363777a29691.tar.lz cuberite-8fbb9dbf53105fc7379b5696baf2363777a29691.tar.xz cuberite-8fbb9dbf53105fc7379b5696baf2363777a29691.tar.zst cuberite-8fbb9dbf53105fc7379b5696baf2363777a29691.zip |
Diffstat (limited to 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol_1_8.cpp | 4 | ||||
-rw-r--r-- | src/Protocol/Protocol_1_9.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index 895dde3ed..f578e0e65 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -2851,7 +2851,9 @@ void cProtocol_1_8_0::ParseItemMetadata(cItem & a_Item, const AString & a_Metada { AString HexDump; CreateHexDump(HexDump, a_Metadata.data(), std::max<size_t>(a_Metadata.size(), 1024), 16); - LOGWARNING("Cannot parse NBT item metadata: (" SIZE_T_FMT " bytes)\n%s", a_Metadata.size(), HexDump.c_str()); + LOGWARNING("Cannot parse NBT item metadata: %s at (" SIZE_T_FMT " / " SIZE_T_FMT " bytes)\n%s", + NBT.GetErrorCode().message().c_str(), NBT.GetErrorPos(), a_Metadata.size(), HexDump.c_str() + ); return; } diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp index 3b47e2b8a..4e888bd64 100644 --- a/src/Protocol/Protocol_1_9.cpp +++ b/src/Protocol/Protocol_1_9.cpp @@ -2949,7 +2949,9 @@ void cProtocol_1_9_0::ParseItemMetadata(cItem & a_Item, const AString & a_Metada { AString HexDump; CreateHexDump(HexDump, a_Metadata.data(), std::max<size_t>(a_Metadata.size(), 1024), 16); - LOGWARNING("Cannot parse NBT item metadata: (" SIZE_T_FMT " bytes)\n%s", a_Metadata.size(), HexDump.c_str()); + LOGWARNING("Cannot parse NBT item metadata: %s at (" SIZE_T_FMT " / " SIZE_T_FMT " bytes)\n%s", + NBT.GetErrorCode().message().c_str(), NBT.GetErrorPos(), a_Metadata.size(), HexDump.c_str() + ); return; } |