remove the explicit compress() because getChunkSlices() will call it

This commit is contained in:
David Vierra 2011-08-16 13:40:51 -10:00
parent cb2dd8e746
commit d1ad50724a

View File

@ -1939,7 +1939,7 @@ class MCInfdevOldLevel(EntityLevel):
count = 0; count = 0;
for chunk, slices, point in self.getChunkSlices(box): for chunk, slices, point in self.getChunkSlices(box):
count += chunk.removeEntitiesInBox(box); count += chunk.removeEntitiesInBox(box);
chunk.compress();
info("Removed {0} entities".format(count)) info("Removed {0} entities".format(count))
return count; return count;
@ -1947,7 +1947,7 @@ class MCInfdevOldLevel(EntityLevel):
count = 0; count = 0;
for chunk, slices, point in self.getChunkSlices(box): for chunk, slices, point in self.getChunkSlices(box):
count += chunk.removeTileEntitiesInBox(box); count += chunk.removeTileEntitiesInBox(box);
chunk.compress();
info("Removed {0} tile entities".format(count)) info("Removed {0} tile entities".format(count))
return count; return count;
@ -2028,7 +2028,7 @@ class MCInfdevOldLevel(EntityLevel):
chunk.removeTileEntitiesInBox(box) chunk.removeTileEntitiesInBox(box)
chunk.chunkChanged(needsLighting); chunk.chunkChanged(needsLighting);
chunk.compress();
if len(blocksToReplace): if len(blocksToReplace):
info(u"Replace: Skipped {0} chunks, replaced {1} blocks".format(skipped, replaced)) info(u"Replace: Skipped {0} chunks, replaced {1} blocks".format(skipped, replaced))
@ -2102,7 +2102,7 @@ class MCInfdevOldLevel(EntityLevel):
data[mask] &= 0xf; data[mask] &= 0xf;
chunk.chunkChanged(); chunk.chunkChanged();
chunk.compress();
d = datetime.now() - start; d = datetime.now() - start;
if i: if i:
@ -2143,7 +2143,7 @@ class MCInfdevOldLevel(EntityLevel):
dstdata[dstslices][mask] = convertedSourceData[mask] dstdata[dstslices][mask] = convertedSourceData[mask]
chunk.chunkChanged() chunk.chunkChanged()
chunk.compress()
def copyBlocksFrom(self, sourceLevel, sourceBox, destinationPoint, blocksToCopy=None, entities=True): def copyBlocksFrom(self, sourceLevel, sourceBox, destinationPoint, blocksToCopy=None, entities=True):