From e4af304e6046579949e4d32045a4d7031117d1f2 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Thu, 15 Sep 2011 13:13:22 -0400 Subject: [PATCH] Another fix for #481 --- overviewer_core/world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 569db80..fb2c28f 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -271,9 +271,9 @@ class World(object): ## The filename of this chunk chunkFile = self.get_region_path(chunkX, chunkY) if chunkFile is not None: - data = nbt.load_from_region(chunkFile, chunkX, chunkY, self.north_direction)[1] + data = nbt.load_from_region(chunkFile, chunkX, chunkY, self.north_direction) if data is not None: - level = data['Level'] + level = data[1]['Level'] blockArray = numpy.frombuffer(level['Blocks'], dtype=numpy.uint8).reshape((16,16,128)) ## The block for spawn *within* the chunk