From 8f69da86f4d2b9b1331bdb057a672e126892c415 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Mon, 19 Dec 2011 23:05:29 -0500 Subject: [PATCH] Finished implemention of RegionSet. not yet tested Rewrite Tracking Issue: #568 --- overviewer_core/world.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 02ca7af..09ec253 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -372,8 +372,6 @@ its x, z coordinates. The coordinates are chunk coordinates. return None return regioninfo[0].load_chunk(x,z) - raise NotImplementedError("get_chunk rewrite") - def iterate_chunks(self): """Returns an iterator over all chunk metadata in this world. Iterates over tuples of integers (x,z,mtime) for each chunk. Other chunk data is not returned here. @@ -387,7 +385,7 @@ Old name: world.iterate_chunk_metadata def chunk_exists(self, x, z): """Returns True or False depending on whether the given chunk exists. """ - raise NotImplementedError("chunk_exists needs rewrite") + return self.regions[self.get_region_path(x,z)][0].chunk_exists(x,z) #used to reload a changed region def _reload_region(self,filename):