cBlockArea: Added empty NBT tags to schematic file saving for better compatibility.

Some tools require the presence of Entities and TileEntities tags in the schematic file and they wouldn't open the file if missing. Writing empty list tags.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1204 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
madmaxoft@gmail.com 2013-02-10 13:24:57 +00:00
parent bda7c4ac13
commit 48470bb61a
1 changed files with 5 additions and 0 deletions

View File

@ -293,6 +293,11 @@ bool cBlockArea::SaveToSchematicFile(const AString & a_FileName)
AString Dummy(GetBlockCount(), 0);
Writer.AddByteArray("Data", Dummy.data(), Dummy.size());
}
// TODO: Save entities and block entities
Writer.BeginList("Entities", TAG_Compound);
Writer.EndList();
Writer.BeginList("TileEntities", TAG_Compound);
Writer.EndList();
Writer.Finish();
// TODO: Save to file