From f7911ca08fbc5a7c7a5e108bfaea2d907dfacd6f Mon Sep 17 00:00:00 2001 From: alemidev Date: Sun, 12 Dec 2021 23:02:48 +0100 Subject: [PATCH] use uuid type for uuid --- aiocraft/mc/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiocraft/mc/types.py b/aiocraft/mc/types.py index f099027..5726e16 100644 --- a/aiocraft/mc/types.py +++ b/aiocraft/mc/types.py @@ -205,7 +205,7 @@ class PositionType(Type): Position = PositionType() class UUIDType(Type): - pytype : type = str # TODO maybe use partial with uuid constructor? + pytype : type = uuid.UUID MAX_SIZE : int = 16 def write(self, data:uuid.UUID, buffer:io.BytesIO, ctx:object=None):