added 'LevelName' property which inexplicably returns self.displayName for older levels...
This commit is contained in:
parent
44afb44040
commit
01a176d143
11
mclevel.py
11
mclevel.py
@ -2536,6 +2536,17 @@ class MCInfdevOldLevel(MCLevel):
|
|||||||
def LastPlayed(self, val):
|
def LastPlayed(self, val):
|
||||||
self.root_tag[Data]['LastPlayed'].value = 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
|
_bounds = None
|
||||||
@property
|
@property
|
||||||
def bounds(self):
|
def bounds(self):
|
||||||
|
Reference in New Issue
Block a user