0

Biome data from Biome Extractor is now used if it is present.

If the BIOMEEXTRACTOR data is not available, then non-biome aware
tinting will be used

Open biome data in binary mode (Windows requires this)
This commit is contained in:
Andrew Chin
2010-11-22 22:51:21 -05:00
parent 22db7bb3cd
commit c60180f793
5 changed files with 56 additions and 30 deletions

View File

@@ -115,8 +115,13 @@ def main():
logging.info("Welcome to Minecraft Overviewer!")
logging.debug("Current log level: {0}".format(logging.getLogger().level))
useBiomeData = os.path.exists(os.path.join(worlddir, 'EXTRACTEDBIOMES'))
if not useBiomeData:
logging.info("Notice: Not using biome data for tinting")
# First generate the world's chunk images
w = world.WorldRenderer(worlddir, cachedir, chunklist=chunklist, lighting=options.lighting, night=options.night)
w = world.WorldRenderer(worlddir, cachedir, chunklist=chunklist, lighting=options.lighting, night=options.night, useBiomeData=useBiomeData)
w.go(options.procs)
# Now generate the tiles