0

Set default north_direction for get_blockarray_fromfile

This commit is contained in:
Ryan Rector
2011-08-04 10:33:07 -06:00
parent ebbc41abed
commit 34e0cf0e20

View File

@@ -75,7 +75,7 @@ def get_blockarray(level):
Block array, which just contains all the block ids""" Block array, which just contains all the block ids"""
return level['Blocks'] return level['Blocks']
def get_blockarray_fromfile(filename, north_direction): def get_blockarray_fromfile(filename, north_direction='lower-left'):
"""Same as get_blockarray except takes a filename. This is a shortcut""" """Same as get_blockarray except takes a filename. This is a shortcut"""
d = nbt.load_from_region(filename, x, y, north_direction) d = nbt.load_from_region(filename, x, y, north_direction)
level = d[1]['Level'] level = d[1]['Level']