allow errors on loading level.dat to filter upward
This commit is contained in:
parent
8ffb8262da
commit
2f1f140101
@ -1600,10 +1600,6 @@ class MCInfdevOldLevel(MCLevel):
|
|||||||
|
|
||||||
self._presentChunks = {};
|
self._presentChunks = {};
|
||||||
|
|
||||||
try:
|
|
||||||
root_tag = nbt.load(filename)
|
|
||||||
except Exception, e:
|
|
||||||
print 'Failed to load Alpha level.dat'
|
|
||||||
|
|
||||||
if create:
|
if create:
|
||||||
|
|
||||||
@ -1652,6 +1648,8 @@ class MCInfdevOldLevel(MCLevel):
|
|||||||
if not os.path.exists(self.worldDir):
|
if not os.path.exists(self.worldDir):
|
||||||
os.mkdir(self.worldDir)
|
os.mkdir(self.worldDir)
|
||||||
|
|
||||||
|
else:
|
||||||
|
root_tag = nbt.load(filename)
|
||||||
|
|
||||||
self.root_tag = root_tag;
|
self.root_tag = root_tag;
|
||||||
self.filename = filename;
|
self.filename = filename;
|
||||||
|
Reference in New Issue
Block a user