Always write tile tag

This commit is contained in:
Jesse Boyd 2017-03-14 08:40:12 +11:00
parent 91450e569b
commit 1b71bcd4a1
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -216,6 +216,8 @@ public class SchematicWriter implements ClipboardWriter {
if (hasTile) {
final List<CompoundTag> tileEntities = clipboard.IMP.getTileEntities();
out.writeNamedTag("TileEntities", new ListTag(CompoundTag.class, tileEntities));
} else {
out.writeNamedTag("TileEntities", new ListTag(CompoundTag.class, new ArrayList<Tag>()));
}
List<Tag> entities = new ArrayList<Tag>();