From fd7388fcd0000d7656bec6f99a487ea30c220bc2 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Wed, 23 Feb 2011 09:35:53 -1000 Subject: [PATCH] fill out the new version and LevelName fields on creation --- mclevel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mclevel.py b/mclevel.py index 622b652..d2f9e5d 100644 --- a/mclevel.py +++ b/mclevel.py @@ -2431,6 +2431,8 @@ class MCInfdevOldLevel(MCLevel): root_tag[Data]['SizeOnDisk'] = TAG_Long(long(0)) root_tag[Data]['Time'] = TAG_Long(1) + root_tag[Data]['version'] = TAG_Int(19132) + root_tag[Data]['LevelName'] = TAG_String(os.path.basename(self.worldDir)) ### if singleplayer: root_tag[Data][Player] = TAG_Compound()