From 97e598593380dc97e6ad40809b9bda83c1b21e78 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 3 Jan 2015 11:56:51 -0500 Subject: [PATCH] Allow worlds with a version of zero (temp fix for #1194) --- overviewer_core/world.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 0597317..910362f 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -105,8 +105,12 @@ class World(object): # Hard-code this to only work with format version 19133, "Anvil" if not ('version' in data and data['version'] == 19133): - logging.critical("Sorry, This version of Minecraft-Overviewer only works with the 'Anvil' chunk format") - raise ValueError("World at %s is not compatible with Overviewer" % self.worlddir) + if 'version' in data and data['version'] == 0: + logging.debug("Note: Allowing a version of zero in level.dat!") + ## XXX temporary fix for #1194 + else: + logging.critical("Sorry, This version of Minecraft-Overviewer only works with the 'Anvil' chunk format") + raise ValueError("World at %s is not compatible with Overviewer" % self.worlddir) # This isn't much data, around 15 keys and values for vanilla worlds. self.leveldat = data