update deps

This commit is contained in:
Robin Appelman 2023-12-24 19:07:40 +01:00
commit 176bc572b9
3 changed files with 91 additions and 62 deletions

View file

@ -52,7 +52,7 @@ impl Parser {
let mut class_names = Vec::new();
while let Some(packet) = packet_stream.next(handler.get_parser_state()).unwrap() {
let tick = packet.tick();
let tick = u32::from(packet.tick());
packets.push(packet.clone());
if let Packet::DataTables(DataTablePacket {
@ -108,7 +108,7 @@ impl Parser {
.enumerate()
.map(|(index, packet)| PacketMeta {
index,
tick: packet.tick(),
tick: u32::from(packet.tick()),
ty: packet.packet_type() as u8,
})
.map(|meta| JsValue::from_serde(&meta).unwrap())