added 'LevelName' property which inexplicably returns self.displayName for older levels...

This commit is contained in:
David Vierra 2011-03-22 22:27:55 -10:00
parent 44afb44040
commit 01a176d143

View File

@ -2536,6 +2536,17 @@ class MCInfdevOldLevel(MCLevel):
def LastPlayed(self, val):
self.root_tag[Data]['LastPlayed'].value = val
@property
def LevelName(self):
if 'LevelName' not in self.root_tag[Data]:
return self.displayName
return self.root_tag[Data]['LevelName'].value
@LevelName.setter
def LevelName(self, val):
self.root_tag[Data]['LevelName'] = TAG_String(val)
_bounds = None
@property
def bounds(self):