Attempt to fix null UUIDs being handled strangely when serializing to NbtUUID
This commit is contained in:
parent
86386f97a2
commit
95d769bf89
2 changed files with 7 additions and 8 deletions
|
@ -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:
|
||||
{
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue