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

@@ -170,6 +170,12 @@ class ChunkRenderer(object):
_, dir1 = os.path.split(moredirs)
self.cachedir = os.path.join(cachedir, dir1, dir2)
if self.world.useBiomeData:
if not textures.grasscolor or not textures.foliagecolor:
raise Exception("Can't find grasscolor.png or foliagecolor.png")
if not os.path.exists(self.cachedir):
try:
os.makedirs(self.cachedir)