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) {
|
switch (version) {
|
||||||
case 0:
|
case 0:
|
||||||
{
|
{
|
||||||
int i = 0;
|
ByteLayer layer = ByteLayer();
|
||||||
int end = 16;
|
layer.writeLong(0);
|
||||||
List<int> bytes = [];
|
layer.writeLong(0);
|
||||||
for (i = 0; i < end; i++) {
|
|
||||||
bytes.add(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
return UUID(bytes);
|
layer.resetPosition();
|
||||||
|
|
||||||
|
return UUID(layer.readBytes(16));
|
||||||
}
|
}
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: libac_flutter
|
name: libac_flutter
|
||||||
description: "Aria's Creations code library"
|
description: "Aria's Creations code library"
|
||||||
version: 1.0.14
|
version: 1.0.15
|
||||||
homepage: "https://zontreck.com"
|
homepage: "https://zontreck.com"
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue