0

fixed rotated renders for anvil-formatted worlds

This commit is contained in:
Andrew Brown
2012-02-25 15:01:55 -05:00
parent aa49321efd
commit 72f292104a
2 changed files with 11 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ def checkBadEscape(s):
def validateWorldPath(worldpath):
_, worldpath = checkBadEscape(worldpath)
abs_path = os.path.abspath(worldpath)
abs_path = os.path.abspath(os.path.expanduser(worldpath))
if not os.path.exists(os.path.join(abs_path, "level.dat")):
raise ValidationException("No level.dat file in '%s'. Are you sure you have the right path?" % (abs_path,))
return abs_path