From 783c91adffdd6163d20fe400b8810cc523f63218 Mon Sep 17 00:00:00 2001 From: Michael Jensen Date: Thu, 30 Sep 2010 10:16:07 +1000 Subject: [PATCH 1/3] Merge branches 'documentation' and 'master' From 52fab49248ba469ca7084c365f24824866528c97 Mon Sep 17 00:00:00 2001 From: Michael Jensen Date: Wed, 20 Oct 2010 23:52:33 +1100 Subject: [PATCH 2/3] Fixed simple missing test that was causing index out of range exceptions Now will not crash if the map being rendered in cave mode goes up to the height limit. --- chunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chunk.py b/chunk.py index aefcab7..0ebe1cc 100644 --- a/chunk.py +++ b/chunk.py @@ -531,7 +531,7 @@ class ChunkRenderer(object): ): continue elif cave and ( - y == 15 and x == 0 + y == 15 and x == 0 and z != 127 ): # If it's on the facing edge, only render if what's # above it is transparent From 32552c50d643a308d3b2024ad9360e4f2ba3c0cc Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sun, 31 Oct 2010 13:19:58 -0400 Subject: [PATCH 3/3] only render overworld. Still renders grayscale though --- world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world.py b/world.py index 8ffdef4..a76764d 100644 --- a/world.py +++ b/world.py @@ -215,7 +215,7 @@ class WorldRenderer(object): all_chunks = [] for dirpath, dirnames, filenames in os.walk(self.worlddir): - if not dirnames and filenames: + if not dirnames and filenames and "DIM-1" not in dirpath: for f in filenames: if f.startswith("c.") and f.endswith(".dat"): p = f.split(".")