summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WSSAnvil.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2020-04-30 08:44:49 +0200
committerGitHub <noreply@github.com>2020-04-30 08:44:49 +0200
commitdfe7a0adee150bb00b611c48b50d3e928f27222f (patch)
tree00d40a9fdd9a91a34f2684b3a087a398980bf824 /src/WorldStorage/WSSAnvil.cpp
parentUpdate DispenserEntity.cpp (diff)
downloadcuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar
cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.gz
cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.bz2
cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.lz
cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.xz
cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.tar.zst
cuberite-dfe7a0adee150bb00b611c48b50d3e928f27222f.zip
Diffstat (limited to 'src/WorldStorage/WSSAnvil.cpp')
-rwxr-xr-xsrc/WorldStorage/WSSAnvil.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WorldStorage/WSSAnvil.cpp b/src/WorldStorage/WSSAnvil.cpp
index 96b8874a1..a5195196f 100755
--- a/src/WorldStorage/WSSAnvil.cpp
+++ b/src/WorldStorage/WSSAnvil.cpp
@@ -326,7 +326,8 @@ bool cWSSAnvil::LoadChunkFromData(const cChunkCoords & a_Chunk, const AString &
if (!NBT.IsValid())
{
// NBT Parsing failed
- ChunkLoadFailed(a_Chunk.m_ChunkX, a_Chunk.m_ChunkZ, "NBT parsing failed", a_Data);
+ auto msg = fmt::format("NBT parsing failed: {}, pos {}", NBT.GetErrorCode().message(), NBT.GetErrorPos());
+ ChunkLoadFailed(a_Chunk.m_ChunkX, a_Chunk.m_ChunkZ, msg, a_Data);
return false;
}
@@ -3520,8 +3521,8 @@ bool cWSSAnvil::cMCAFile::GetChunkData(const cChunkCoords & a_Chunk, AString & a
m_ParentSchema.ChunkLoadFailed(a_Chunk.m_ChunkX, a_Chunk.m_ChunkZ, Printf("Unknown chunk compression: %d", CompressionType).c_str(), a_Data);
return false;
}
- return true;
- }
+ return true;
+}