From ae0b3dfedf32ddf91ae1543d48ce2e47463fd4d8 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Tue, 14 Dec 2010 11:54:26 +1000 Subject: [PATCH] check_cache() wants a full tuple, not just part --- world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/world.py b/world.py index effc46a..03a8651 100644 --- a/world.py +++ b/world.py @@ -301,7 +301,7 @@ class WorldRenderer(object): continue oldimg = chunk.find_oldimage(chunkfile, cached, self.caves) - if chunk.check_cache(chunkfile, oldimg[1]): + if chunk.check_cache(chunkfile, oldimg): result = oldimg[1] else: result = chunk.render_and_save(chunkfile, self.cachedir, self, oldimg, queue=q) @@ -331,7 +331,7 @@ class WorldRenderer(object): continue oldimg = chunk.find_oldimage(chunkfile, cached, self.caves) - if chunk.check_cache(chunkfile, oldimg[1]): + if chunk.check_cache(chunkfile, oldimg): result = FakeAsyncResult(oldimg[1]) else: result = pool.apply_async(chunk.render_and_save,