diff --git a/world.py b/world.py index 8d5c2c5..17b9ef6 100644 --- a/world.py +++ b/world.py @@ -112,7 +112,7 @@ class WorldRenderer(object): # In order to avoid having to look up the cache file names in # ChunkRenderer, get them all and store them here - for root, dirnames, filenames in os.walk('.'): + for root, dirnames, filenames in os.walk(cachedir): for filename in filenames: if not filename.endswith('.png'): continue