Return a invalid value when no reply

This commit is contained in:
zontreck 2024-05-22 16:33:49 -07:00
parent 178cc201c1
commit f5d1d741cb
2 changed files with 4 additions and 1 deletions

View file

@ -60,6 +60,9 @@ class PacketClient {
}
Future<CompoundTag> send(IPacket packet) async {
if (!connected) {
return CompoundTag();
}
socket!.add(await NbtIo.writeToStream(packet.encodeTag().asCompoundTag()));
CompoundTag ct = CompoundTag();
socket!.listen((data) async {

View file

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