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-c427514a06d6master
parent
bda7c4ac13
commit
48470bb61a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue