Use the proper find_oldimage()
This commit is contained in:
6
world.py
6
world.py
@@ -289,8 +289,7 @@ class WorldRenderer(object):
|
|||||||
for i, (col, row, chunkfile) in enumerate(chunks):
|
for i, (col, row, chunkfile) in enumerate(chunks):
|
||||||
if inclusion_set and (col, row) not in inclusion_set:
|
if inclusion_set and (col, row) not in inclusion_set:
|
||||||
# Skip rendering, just find where the existing image is
|
# Skip rendering, just find where the existing image is
|
||||||
_, imgpath = chunk.ChunkRenderer(chunkfile,
|
_, imgpath = chunk.find_oldimage(chunkfile, cached, self.caves)
|
||||||
self.cachedir, self, q).find_oldimage(False)
|
|
||||||
if imgpath:
|
if imgpath:
|
||||||
results[(col, row)] = imgpath
|
results[(col, row)] = imgpath
|
||||||
continue
|
continue
|
||||||
@@ -320,8 +319,7 @@ class WorldRenderer(object):
|
|||||||
for col, row, chunkfile in chunks:
|
for col, row, chunkfile in chunks:
|
||||||
if inclusion_set and (col, row) not in inclusion_set:
|
if inclusion_set and (col, row) not in inclusion_set:
|
||||||
# Skip rendering, just find where the existing image is
|
# Skip rendering, just find where the existing image is
|
||||||
_, imgpath = chunk.ChunkRenderer(chunkfile,
|
_, imgpath = chunk.find_oldimage(chunkfile, cached, self.caves)
|
||||||
self.cachedir, self, q).find_oldimage(False)
|
|
||||||
if imgpath:
|
if imgpath:
|
||||||
results[(col, row)] = imgpath
|
results[(col, row)] = imgpath
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user