Fix some inconsistencies

This commit is contained in:
zontreck 2025-02-03 12:16:21 -07:00
parent cfd97a687c
commit 4957fe633e
4 changed files with 25 additions and 15 deletions

View file

@ -123,7 +123,8 @@ class PacketServer {
}
CompoundTag tag =
await NbtIo.readFromStream(Uint8List.fromList(remainingBytes));
await NbtIo.readFromStream(Uint8List.fromList(remainingBytes))
as CompoundTag;
StringBuilder builder = StringBuilder();
Tag.writeStringifiedNamedTag(tag, builder, 0);
@ -327,7 +328,8 @@ class PacketClient {
pktBytes = await xtea.decipher(pktBytes);
}
NBTTag = await NbtIo.readFromStream(Uint8List.fromList(pktBytes));
NBTTag = await NbtIo.readFromStream(Uint8List.fromList(pktBytes))
as CompoundTag;
}
responseWait.complete();