From d1ad50724a6fe0e3ffe2d6c9ab619f552651742e Mon Sep 17 00:00:00 2001 From: David Vierra Date: Tue, 16 Aug 2011 13:40:51 -1000 Subject: [PATCH] remove the explicit compress() because getChunkSlices() will call it --- infiniteworld.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/infiniteworld.py b/infiniteworld.py index 2894045..bbe1dbe 100644 --- a/infiniteworld.py +++ b/infiniteworld.py @@ -1939,7 +1939,7 @@ class MCInfdevOldLevel(EntityLevel): count = 0; for chunk, slices, point in self.getChunkSlices(box): count += chunk.removeEntitiesInBox(box); - chunk.compress(); + info("Removed {0} entities".format(count)) return count; @@ -1947,7 +1947,7 @@ class MCInfdevOldLevel(EntityLevel): count = 0; for chunk, slices, point in self.getChunkSlices(box): count += chunk.removeTileEntitiesInBox(box); - chunk.compress(); + info("Removed {0} tile entities".format(count)) return count; @@ -2028,7 +2028,7 @@ class MCInfdevOldLevel(EntityLevel): chunk.removeTileEntitiesInBox(box) chunk.chunkChanged(needsLighting); - chunk.compress(); + if len(blocksToReplace): info(u"Replace: Skipped {0} chunks, replaced {1} blocks".format(skipped, replaced)) @@ -2102,7 +2102,7 @@ class MCInfdevOldLevel(EntityLevel): data[mask] &= 0xf; chunk.chunkChanged(); - chunk.compress(); + d = datetime.now() - start; if i: @@ -2143,7 +2143,7 @@ class MCInfdevOldLevel(EntityLevel): dstdata[dstslices][mask] = convertedSourceData[mask] chunk.chunkChanged() - chunk.compress() + def copyBlocksFrom(self, sourceLevel, sourceBox, destinationPoint, blocksToCopy=None, entities=True):