NBTCompoundAttr now parents the CompoundRef it returns to its own CompoundRef

This commit is contained in:
David Vierra 2015-07-09 16:25:11 -10:00
parent ae8925a8d3
commit 3112a27885

View File

@ -255,7 +255,7 @@ class NBTCompoundAttr(NBTAttr):
tag = instance.rootTag
if self.name not in tag:
tag[self.name] = self.tagType(value=self.default)
return self.compoundRefClass(tag[self.name])
return self.compoundRefClass(tag[self.name], instance)
def __set__(self, instance, value):
"""