set MCAlphaDimension.parentWorld before calling MCInfdevOldLevel.__init__ to make sure the root_tag property has parentWorld set

This commit is contained in:
David Vierra 2011-11-29 14:53:41 -10:00
parent 065550a68b
commit 11ed48ce58

View File

@ -3045,9 +3045,9 @@ class MCInfdevOldLevel(ChunkedLevelMixin, EntityLevel):
class MCAlphaDimension (MCInfdevOldLevel):
def __init__(self, parentWorld, dimNo, create=False):
filename = os.path.join(parentWorld.worldDir, "DIM" + str(int(dimNo)))
self.parentWorld = parentWorld;
MCInfdevOldLevel.__init__(self, filename, create)
self.dimNo = dimNo
self.parentWorld = parentWorld;
self.filename = parentWorld.filename
self.playersDir = parentWorld.playersDir;
self.players = parentWorld.players