Fix some inconsistencies
This commit is contained in:
parent
cfd97a687c
commit
4957fe633e
4 changed files with 25 additions and 15 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue