0

Another fix for #481

This commit is contained in:
Andrew Chin
2011-09-15 13:13:22 -04:00
parent 1f9bef14e6
commit e4af304e60

View File

@@ -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