Ignore cache images that don't start with "img."
This fixes a bug introduced by the cache-checking changes
This commit is contained in:
2
world.py
2
world.py
@@ -121,7 +121,7 @@ class WorldRenderer(object):
|
|||||||
# ChunkRenderer, get them all and store them here
|
# ChunkRenderer, get them all and store them here
|
||||||
for root, dirnames, filenames in os.walk(cachedir):
|
for root, dirnames, filenames in os.walk(cachedir):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if not filename.endswith('.png'):
|
if not filename.endswith('.png') or not filename.startswith("img."):
|
||||||
continue
|
continue
|
||||||
dirname, dir_b = os.path.split(root)
|
dirname, dir_b = os.path.split(root)
|
||||||
_, dir_a = os.path.split(dirname)
|
_, dir_a = os.path.split(dirname)
|
||||||
|
|||||||
Reference in New Issue
Block a user