From f5a678ec45f0340e7ce9eb24830d3ff99035e3d3 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Wed, 9 Mar 2016 09:02:00 -0500 Subject: [PATCH] working on chunk tagging feature --- chunkymap-regen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chunkymap-regen.py b/chunkymap-regen.py index f3b42b5..7ba47e0 100644 --- a/chunkymap-regen.py +++ b/chunkymap-regen.py @@ -237,6 +237,7 @@ class MTChunk: self.metadata["image_right"] = None self.metadata["image_bottom"] = None self.metadata["is_traversed"] = False + self.metadata["tags"] = None def load_yaml(self, yml_path): self.metadata = get_dict_modified_by_conf_file(self.metadata,yml_path,":") @@ -1523,6 +1524,9 @@ class MTChunks: break print("Checking chunk "+str(coords)+" *"+str(self.mapvars["chunk_size"])+"") self.prepare_chunk_meta(chunky_x, chunky_z) + self.chunks[chunk_luid].metadata["tags"] = "moreores" + self.chunks[chunk_luid].save_yaml(chunk_path) + print(" saved tags to '"+chunk_path+"'") for decachunk_luid in decachunk_luid_list: coords = self.get_coords_from_luid(decachunk_luid) if coords is not None: