Return a invalid value when no reply
This commit is contained in:
parent
178cc201c1
commit
f5d1d741cb
2 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue