summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-06 19:40:04 +0200
committerMattes D <github@xoft.cz>2017-09-11 23:20:12 +0200
commit4a0355f065a3be357cfb0e650224903f53e70913 (patch)
tree92a639bc1bf23b00beed43d8e9a7e16907de0f0a /src/WorldStorage
parentAdd a test for cUUID (#4021) (diff)
downloadcuberite-4a0355f065a3be357cfb0e650224903f53e70913.tar
cuberite-4a0355f065a3be357cfb0e650224903f53e70913.tar.gz
cuberite-4a0355f065a3be357cfb0e650224903f53e70913.tar.bz2
cuberite-4a0355f065a3be357cfb0e650224903f53e70913.tar.lz
cuberite-4a0355f065a3be357cfb0e650224903f53e70913.tar.xz
cuberite-4a0355f065a3be357cfb0e650224903f53e70913.tar.zst
cuberite-4a0355f065a3be357cfb0e650224903f53e70913.zip
Diffstat (limited to 'src/WorldStorage')
-rw-r--r--src/WorldStorage/SchematicFileSerializer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WorldStorage/SchematicFileSerializer.cpp b/src/WorldStorage/SchematicFileSerializer.cpp
index d6bcf840f..e72f58fa3 100644
--- a/src/WorldStorage/SchematicFileSerializer.cpp
+++ b/src/WorldStorage/SchematicFileSerializer.cpp
@@ -210,7 +210,7 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
);
NumTypeBytes = a_NBT.GetDataLength(TBlockTypes);
}
- memcpy(a_BlockArea.m_BlockTypes, a_NBT.GetData(TBlockTypes), NumTypeBytes);
+ memcpy(a_BlockArea.GetBlockTypes(), a_NBT.GetData(TBlockTypes), NumTypeBytes);
if (AreMetasPresent)
{
@@ -222,7 +222,7 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
);
NumMetaBytes = a_NBT.GetDataLength(TBlockMetas);
}
- memcpy(a_BlockArea.m_BlockMetas, a_NBT.GetData(TBlockMetas), NumMetaBytes);
+ memcpy(a_BlockArea.GetBlockMetas(), a_NBT.GetData(TBlockMetas), NumMetaBytes);
}
return true;
@@ -241,7 +241,7 @@ AString cSchematicFileSerializer::SaveToSchematicNBT(const cBlockArea & a_BlockA
Writer.AddString("Materials", "Alpha");
if (a_BlockArea.HasBlockTypes())
{
- Writer.AddByteArray("Blocks", reinterpret_cast<const char *>(a_BlockArea.m_BlockTypes), a_BlockArea.GetBlockCount());
+ Writer.AddByteArray("Blocks", reinterpret_cast<const char *>(a_BlockArea.GetBlockTypes()), a_BlockArea.GetBlockCount());
}
else
{
@@ -250,7 +250,7 @@ AString cSchematicFileSerializer::SaveToSchematicNBT(const cBlockArea & a_BlockA
}
if (a_BlockArea.HasBlockMetas())
{
- Writer.AddByteArray("Data", reinterpret_cast<const char *>(a_BlockArea.m_BlockMetas), a_BlockArea.GetBlockCount());
+ Writer.AddByteArray("Data", reinterpret_cast<const char *>(a_BlockArea.GetBlockMetas()), a_BlockArea.GetBlockCount());
}
else
{