From cca4cc71ebe8bee4d743d47ec8299069a8997bbf Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 30 Sep 2016 11:18:26 -1000 Subject: [PATCH] Fix NBTUUIDAttr not creating tags if missing --- src/mceditlib/nbtattr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mceditlib/nbtattr.py b/src/mceditlib/nbtattr.py index dfe6a26..ee30995 100644 --- a/src/mceditlib/nbtattr.py +++ b/src/mceditlib/nbtattr.py @@ -119,8 +119,8 @@ class NBTUUIDAttr(object): least = uuidInt & 0xffffffffffffffffL most = (uuidInt >> 64) & 0xffffffffffffffffL tag = instance.rootTag - tag["UUIDLeast"].value = _signed(least) - tag["UUIDMost"].value = _signed(most) + tag["UUIDLeast"] = nbt.TAG_Long(_signed(least)) + tag["UUIDMost"] = nbt.TAG_Long(_signed(most)) instance.dirty = True