Only rotate Block data when asking for block data
This commit is contained in:
@@ -83,15 +83,6 @@ def get_blockarray_fromfile(filename, north_direction):
|
||||
chunk_data['Blocks'] = numpy.rot90(numpy.frombuffer(
|
||||
level['Blocks'], dtype=numpy.uint8).reshape((16,16,128)),
|
||||
self._get_north_rotations())
|
||||
chunk_data['Data'] = numpy.rot90(numpy.frombuffer(
|
||||
level['Data'], dtype=numpy.uint8).reshape((16,16,64)),
|
||||
self._get_north_rotations())
|
||||
chunk_data['SkyLight'] = numpy.rot90(numpy.frombuffer(
|
||||
level['SkyLight'], dtype=numpy.uint8).reshape((16,16,64)),
|
||||
self._get_north_rotations())
|
||||
chunk_data['BlockLight'] = numpy.rot90(numpy.frombuffer(
|
||||
level['BlockLight'], dtype=numpy.uint8).reshape((16,16,64)),
|
||||
self._get_north_rotations())
|
||||
return get_blockarray(chunk_data)
|
||||
|
||||
def get_skylight_array(level):
|
||||
|
||||
Reference in New Issue
Block a user