From 5f6cf2aa1494f7c5ff3417daf203d2da2f8101bb Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 2 Dec 2010 21:17:46 -1000 Subject: [PATCH] add chunkIsLoaded test for generic levels --- mclevel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mclevel.py b/mclevel.py index 22c2de3..3ae6ca3 100644 --- a/mclevel.py +++ b/mclevel.py @@ -494,7 +494,9 @@ class MCLevel(object): return (cx >=0 and cx < (self.Width+15 >> 4) and cz >=0 and cz < (self.Length+15 >> 4)) - + def chunkIsLoaded(self, cx, cz): + return self.containsChunk(cx,cz) + def lightsForChunk(self, cx, cz): return None; def skyLightForChunk(self, cx, cz):