0

Ignore cache images that don't start with "img."

This fixes a bug introduced by the cache-checking changes
This commit is contained in:
Andrew Chin
2010-12-23 02:21:54 -05:00
parent 1a526bbba0
commit 2bf7566b5a

View File

@@ -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)