add chunkIsCompressed/Dirty, clean up chunkIsLoaded
This commit is contained in:
parent
91490dfd10
commit
346b0aab99
16
mclevel.py
16
mclevel.py
@ -3208,9 +3208,19 @@ class MCInfdevOldLevel(MCLevel):
|
|||||||
|
|
||||||
def chunkIsLoaded(self, cx, cz):
|
def chunkIsLoaded(self, cx, cz):
|
||||||
if (cx,cz) in self._loadedChunks:
|
if (cx,cz) in self._loadedChunks:
|
||||||
if( self._loadedChunks[(cx,cz)].compressedTag is not None or
|
return self._loadedChunks[(cx,cz)].isLoaded()
|
||||||
self._loadedChunks[(cx,cz)].root_tag is not None):
|
|
||||||
return True
|
return False
|
||||||
|
|
||||||
|
def chunkIsCompressed(self, cx, cz):
|
||||||
|
if (cx,cz) in self._loadedChunks:
|
||||||
|
return self._loadedChunks[(cx,cz)].isCompressed()
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
def chunkIsDirty(self, cx, cz):
|
||||||
|
if (cx,cz) in self._loadedChunks:
|
||||||
|
return self._loadedChunks[(cx,cz)].dirty
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user