diff --git a/lib/utils/uuid/NbtUUID.dart b/lib/utils/uuid/NbtUUID.dart index 0a13788..c3e2b3b 100644 --- a/lib/utils/uuid/NbtUUID.dart +++ b/lib/utils/uuid/NbtUUID.dart @@ -25,6 +25,14 @@ class NbtUUID { /// Returns the Least Significant Bits (LSB) long value of the UUID. int getLeastSignificantBits() => LSB; + + UUID toUUID() { + ByteLayer layer = ByteLayer(); + layer.writeUnsignedLong(MSB); + layer.writeUnsignedLong(LSB); + + return UUID(layer.readBytes(16)); + } } /* diff --git a/pubspec.yaml b/pubspec.yaml index 51268cb..5f6d158 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: libac_flutter description: "Aria's Creations code library" -version: 1.0.12 +version: 1.0.13 homepage: "https://zontreck.com" environment: