From b94daab5a0e11c5fa2416a4ad7726e04ac3a77f9 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Sat, 11 Dec 2010 21:21:08 +1000 Subject: [PATCH] Use self.dirbits instead of dirbits --- chunk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chunk.py b/chunk.py index 611eb53..c5dec69 100644 --- a/chunk.py +++ b/chunk.py @@ -304,7 +304,7 @@ class ChunkRenderer(object): def find_oldimage(self, cave): # Get the name of the existing image. oldimg = oldimg_path = None - key = ".".join((dirbits[0], dirbits[1], self.blockid, "cave" if cave else "nocave")) + key = ".".join((self.dirbits[0], self.dirbits[1], self.blockid, "cave" if cave else "nocave")) if key in self.world.cached: oldimg_path = self.world.cached[key] _, oldimg = os.path.split(oldimg_path)