From dc1e3b662be87d538068d32671e765bb0b41ced6 Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Fri, 23 Mar 2012 14:08:03 -0400 Subject: [PATCH] fixed biome rotation for upper-right and lower-left --- overviewer_core/world.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 8511a2c..46818b4 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -562,7 +562,11 @@ class RotatedRegionSet(RegionSetWrapper): array = numpy.swapaxes(array, 0,2) section[arrayname] = array chunk_data['Sections'] = newsections - chunk_data['Biomes'] = numpy.rot90(chunk_data['Biomes'], self.north_dir) + + # same as above, for biomes (Z/X indexed) + biomes = numpy.swapaxes(chunk_data['Biomes'], 0, 1) + biomes = numpy.rot90(biomes, self.north_dir) + chunk_data['Biomes'] = numpy.swapaxes(biomes, 0, 1) return chunk_data def get_chunk_mtime(self, x, z):