add default name for dimensions
This commit is contained in:
parent
27ee33dd33
commit
c313d25ecd
@ -2958,7 +2958,8 @@ class MCAlphaDimension (MCInfdevOldLevel):
|
|||||||
dimensionNames = { -1: "Nether", 1: "The End"};
|
dimensionNames = { -1: "Nether", 1: "The End"};
|
||||||
@property
|
@property
|
||||||
def displayName(self):
|
def displayName(self):
|
||||||
return u"{0} ({1})".format(self.parentWorld.displayName, self.dimensionNames[self.dimNo])
|
return u"{0} ({1})".format(self.parentWorld.displayName,
|
||||||
|
self.dimensionNames.get(self.dimNo, "Dimension %d" % self.dimNo))
|
||||||
|
|
||||||
def saveInPlace(self, saveSelf=False):
|
def saveInPlace(self, saveSelf=False):
|
||||||
"""saving the dimension will save the parent world, which will save any
|
"""saving the dimension will save the parent world, which will save any
|
||||||
|
Reference in New Issue
Block a user