From 4398ac6d9fb7b943f3cae9f190ab1cf1c638d58c Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Thu, 3 Mar 2016 08:43:35 -0500 Subject: [PATCH] fixed syntax --- chunkymap-regen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chunkymap-regen.py b/chunkymap-regen.py index 0cd1e53..bf4a24e 100644 --- a/chunkymap-regen.py +++ b/chunkymap-regen.py @@ -667,7 +667,7 @@ class MTChunks: def print_file(path, indent=""): if os.path.isfile(path): - if indent = None: + if indent is None: indent = "" try: ins = open(path, 'r') @@ -678,8 +678,9 @@ class MTChunks: print(indent+line) ins.close() except: + print(indent+"print_file: could not finish") else: - print ("print_file: missing path") + print (indent+"print_file: missing path") # normally call check_chunk instead, which renders chunk only if necessary def _render_chunk(self, x, z):