use containsChunk instead of testing _loadedChunks

This commit is contained in:
David Vierra 2010-12-06 15:30:35 -10:00
parent ada922c3b6
commit 08e5fe189a

View File

@ -3014,7 +3014,7 @@ class MCInfdevOldLevel(MCLevel):
ret = [];
for cx,cz in chunks:
i+=1;
if not ((cx,cz) in self._loadedChunks):
if not self.containsChunk(cx,cz):
ret.append( (cx,cz) )
self.createChunk(cx,cz);
self.compressChunk(cx,cz);