clarified comments, removed incorrect ones
This commit is contained in:
parent
33df0ed0dc
commit
9f8a1ab35a
@ -309,10 +309,6 @@ class MCLevel:
|
|||||||
#print "Asked to compress unloaded chunk! ", self.chunkPosition
|
#print "Asked to compress unloaded chunk! ", self.chunkPosition
|
||||||
return;
|
return;
|
||||||
else:
|
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();
|
self.packChunkData();
|
||||||
|
|
||||||
buf = StringIO.StringIO()
|
buf = StringIO.StringIO()
|
||||||
@ -1299,6 +1295,8 @@ class InfdevChunk(MCLevel):
|
|||||||
self.dirty = False;
|
self.dirty = False;
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
|
""" If the chunk is unloaded, reads the chunk from disk.
|
||||||
|
Also decompresses it """
|
||||||
if self.compressedTag is None:
|
if self.compressedTag is None:
|
||||||
try:
|
try:
|
||||||
compressedData = file(self.filename, 'rb')
|
compressedData = file(self.filename, 'rb')
|
||||||
|
Reference in New Issue
Block a user