summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/SchematicFileSerializer.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-09 19:33:22 +0200
committerMattes D <github@xoft.cz>2014-05-09 19:33:22 +0200
commit5b54dc3eacca565531446d9c8cc9be7be084670c (patch)
tree528508f261c4d6e9bf27b728c292480d1588c6cb /src/WorldStorage/SchematicFileSerializer.cpp
parentWorld pre-generation distance is settable in world.ini. (diff)
downloadcuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.gz
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.bz2
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.lz
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.xz
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.tar.zst
cuberite-5b54dc3eacca565531446d9c8cc9be7be084670c.zip
Diffstat (limited to 'src/WorldStorage/SchematicFileSerializer.cpp')
-rw-r--r--src/WorldStorage/SchematicFileSerializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/SchematicFileSerializer.cpp b/src/WorldStorage/SchematicFileSerializer.cpp
index 2e356b172..5cbff376b 100644
--- a/src/WorldStorage/SchematicFileSerializer.cpp
+++ b/src/WorldStorage/SchematicFileSerializer.cpp
@@ -230,7 +230,7 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
}
// Copy the block types and metas:
- int NumBytes = (int)a_BlockArea.GetBlockCount();
+ size_t NumBytes = a_BlockArea.GetBlockCount();
if (a_NBT.GetDataLength(TBlockTypes) < NumBytes)
{
LOG("BlockTypes truncated in the schematic file (exp %d, got %d bytes). Loading partial.",
@@ -242,7 +242,7 @@ bool cSchematicFileSerializer::LoadFromSchematicNBT(cBlockArea & a_BlockArea, cP
if (AreMetasPresent)
{
- int NumBytes = (int)a_BlockArea.GetBlockCount();
+ size_t NumBytes = a_BlockArea.GetBlockCount();
if (a_NBT.GetDataLength(TBlockMetas) < NumBytes)
{
LOG("BlockMetas truncated in the schematic file (exp %d, got %d bytes). Loading partial.",