Fix NBTUUIDAttr not creating tags if missing

This commit is contained in:
David Vierra 2016-09-30 11:18:26 -10:00
parent 356565a0b4
commit cca4cc71eb

View File

@ -119,8 +119,8 @@ class NBTUUIDAttr(object):
least = uuidInt & 0xffffffffffffffffL least = uuidInt & 0xffffffffffffffffL
most = (uuidInt >> 64) & 0xffffffffffffffffL most = (uuidInt >> 64) & 0xffffffffffffffffL
tag = instance.rootTag tag = instance.rootTag
tag["UUIDLeast"].value = _signed(least) tag["UUIDLeast"] = nbt.TAG_Long(_signed(least))
tag["UUIDMost"].value = _signed(most) tag["UUIDMost"] = nbt.TAG_Long(_signed(most))
instance.dirty = True instance.dirty = True