diff --git a/src/types/uuid.rs b/src/types/uuid.rs index 9d83b93..5121bfb 100644 --- a/src/types/uuid.rs +++ b/src/types/uuid.rs @@ -18,6 +18,12 @@ impl From for Uuid { } } +impl From for MCUuid { + fn from(value: u128) -> Self { + Self(Uuid::from_u128(value)) + } +} + impl PartialEq for MCUuid { fn eq(&self, other: &Uuid) -> bool { &self.0 == other