0

Fixed an error in my original change, moved code to original location.

This commit is contained in:
but2002
2011-07-31 17:39:56 -05:00
parent f36cb98911
commit 3ccb188a11

View File

@@ -426,10 +426,7 @@ class QuadtreeGen(object):
needs_rerender = False
get_region_mtime = world.get_region_mtime
for col, row, chunkx, chunky, regionfile in chunks:
# check region file mtime first.
region, regionMtime = get_region_mtime(regionfile)
if regionMtime <= tile_mtime:
continue
region, regionMtime = get_region_mtime(regionfile)
# don't even check if it's not in the regionlist
if self.world.regionlist and os.path.abspath(region._filename) not in self.world.regionlist:
@@ -439,6 +436,10 @@ class QuadtreeGen(object):
if self.forcerender:
needs_rerender = True
break
# check region file mtime first.
if regionMtime <= tile_mtime:
continue
# checking chunk mtime
if region.get_chunk_timestamp(chunkx, chunky) > tile_mtime: