From f8140c8de0b5289aa642b56040c0fb0e96aafb59 Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Tue, 21 Feb 2012 02:02:25 -0500 Subject: [PATCH] block data is now correctly reshape'd --- overviewer_core/world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 196f135..ff4dd6e 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -357,7 +357,7 @@ class RegionSet(object): blocks = numpy.frombuffer(section['Blocks'], dtype=numpy.uint8) # Cast up to uint16, blocks can have up to 12 bits of data blocks = blocks.astype(numpy.uint16) - blocks.reshape((16,16,16)) + blocks = blocks.reshape((16,16,16)) if "AddBlocks" in section: # This section has additional bits to tack on to the blocks # array. AddBlocks is a packed array with 4 bits per slot, so