add chunkIsLoaded test for generic levels
This commit is contained in:
parent
f15cd1992d
commit
5f6cf2aa14
@ -494,6 +494,8 @@ class MCLevel(object):
|
|||||||
return (cx >=0 and cx < (self.Width+15 >> 4) and
|
return (cx >=0 and cx < (self.Width+15 >> 4) and
|
||||||
cz >=0 and cz < (self.Length+15 >> 4))
|
cz >=0 and cz < (self.Length+15 >> 4))
|
||||||
|
|
||||||
|
def chunkIsLoaded(self, cx, cz):
|
||||||
|
return self.containsChunk(cx,cz)
|
||||||
|
|
||||||
def lightsForChunk(self, cx, cz):
|
def lightsForChunk(self, cx, cz):
|
||||||
return None;
|
return None;
|
||||||
|
Reference in New Issue
Block a user