Attempt to fix null UUIDs being handled strangely when serializing to NbtUUID

This commit is contained in:
zontreck 2024-05-23 11:35:41 -07:00
parent 86386f97a2
commit 95d769bf89
2 changed files with 7 additions and 8 deletions

View file

@ -77,14 +77,13 @@ class UUID {
switch (version) {
case 0:
{
int i = 0;
int end = 16;
List<int> bytes = [];
for (i = 0; i < end; i++) {
bytes.add(0);
}
ByteLayer layer = ByteLayer();
layer.writeLong(0);
layer.writeLong(0);
return UUID(bytes);
layer.resetPosition();
return UUID(layer.readBytes(16));
}
case 3:
{

View file

@ -1,6 +1,6 @@
name: libac_flutter
description: "Aria's Creations code library"
version: 1.0.14
version: 1.0.15
homepage: "https://zontreck.com"
environment: