From 9f8a1ab35ab91a89c882aed4d0a5de38a64c1507 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sat, 25 Sep 2010 18:32:27 -1000 Subject: [PATCH] clarified comments, removed incorrect ones --- mclevel.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mclevel.py b/mclevel.py index 23e537a..72605de 100644 --- a/mclevel.py +++ b/mclevel.py @@ -309,10 +309,6 @@ class MCLevel: #print "Asked to compress unloaded chunk! ", self.chunkPosition return; else: - #compress if the compressed data is dirty, - #or if it's missing, and we also have uncompressed data - #(if both data are missing, the chunk is not even loaded) - self.packChunkData(); buf = StringIO.StringIO() @@ -1299,6 +1295,8 @@ class InfdevChunk(MCLevel): self.dirty = False; def load(self): + """ If the chunk is unloaded, reads the chunk from disk. + Also decompresses it """ if self.compressedTag is None: try: compressedData = file(self.filename, 'rb')