From 48470bb61a0ac97b2535828b6db0baa60592c595 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 10 Feb 2013 13:24:57 +0000 Subject: 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 --- source/BlockArea.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/BlockArea.cpp b/source/BlockArea.cpp index c39819b4f..472b14c59 100644 --- a/source/BlockArea.cpp +++ b/source/BlockArea.cpp @@ -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 -- cgit v1.2.3