From 2bf7566b5ae908d2cc989e7e9d39293106f7b07a Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Thu, 23 Dec 2010 02:21:54 -0500 Subject: [PATCH] Ignore cache images that don't start with "img." This fixes a bug introduced by the cache-checking changes --- world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world.py b/world.py index 9d295c9..5064baf 100644 --- a/world.py +++ b/world.py @@ -121,7 +121,7 @@ class WorldRenderer(object): # ChunkRenderer, get them all and store them here for root, dirnames, filenames in os.walk(cachedir): for filename in filenames: - if not filename.endswith('.png'): + if not filename.endswith('.png') or not filename.startswith("img."): continue dirname, dir_b = os.path.split(root) _, dir_a = os.path.split(dirname)