NBTCompoundAttr now parents the CompoundRef it returns to its own CompoundRef
This commit is contained in:
parent
ae8925a8d3
commit
3112a27885
@ -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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user