From 6fa86d39bce33155eca0e5ba870c5f8f74804c34 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sun, 1 Jan 2012 22:11:52 -0500 Subject: [PATCH] Removed stupid north_dir, and fixed unpacking --- overviewer_core/world.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 7c5116f..0ead0fb 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -268,19 +268,19 @@ its x, z coordinates. The coordinates are chunk coordinates. def rotate(self, north_direction): return RotatedRegionSet(self.worldobj, self.regiondir, north_direction) - def iterate_chunks(self, north_dir): + 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. Old name: world.iterate_chunk_metadata """ - for regionx, regiony, regionfile in self.regionfiles.itervalues(): + for (regionx, regiony), regionfile in self.regionfiles.iteritems(): mcr = nbt.load_region(regionfile) for chunkx, chunky in mcr.get_chunks(): yield chunkx+32*regionx, chunky+32*regiony, mcr.get_chunk_timestamp(chunkx, chunky) - def get_chunk_mtime(self, x, z, north_dir): + def get_chunk_mtime(self, x, zr): """Returns a chunk’s mtime, or False if the chunk does not exist. This is therefore a dual purpose method. It corrects for the given north direction as described in the docs for get_chunk()"""