0

Give a more useful error if the biome color png files can't be found

This commit is contained in:
Andrew Chin
2010-12-04 19:31:21 -05:00
parent c60180f793
commit 9125919d3e
2 changed files with 8 additions and 1 deletions

View File

@@ -564,7 +564,8 @@ try:
grasscolor = list(Image.open(_find_file("grasscolor.png")).getdata())
foliagecolor = list(Image.open(_find_file("foliagecolor.png")).getdata())
except:
pass
grasscolor = None
foliagecolor = None
currentBiomeFile = None
currentBiomeData = None