0

made sure biome color arrays are loaded in each thread

This commit is contained in:
Aaron Griffith
2011-01-01 15:45:36 -08:00
parent b2d8c415ca
commit 0ab56ce1d9

View File

@@ -211,6 +211,8 @@ class ChunkRenderer(object):
if self.world.useBiomeData: if self.world.useBiomeData:
# make sure we've at least *tried* to load the color arrays in this process...
textures.prepareBiomeData(self.world.worlddir)
if not textures.grasscolor or not textures.foliagecolor: if not textures.grasscolor or not textures.foliagecolor:
raise Exception("Can't find grasscolor.png or foliagecolor.png") raise Exception("Can't find grasscolor.png or foliagecolor.png")