From 96c9a573de80acfbbca328d3ffd4ab11252edf7d Mon Sep 17 00:00:00 2001 From: lukas0008 Date: Wed, 7 Aug 2024 17:21:40 +0200 Subject: [PATCH] fix: unwrap SSwingArm --- pumpkin/src/client/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpkin/src/client/mod.rs b/pumpkin/src/client/mod.rs index e5ec6acc0..a9997b44b 100644 --- a/pumpkin/src/client/mod.rs +++ b/pumpkin/src/client/mod.rs @@ -258,7 +258,7 @@ impl Client { SPlayerCommand::PACKET_ID => { self.handle_player_command(server, SPlayerCommand::read(bytebuf).unwrap()) } - SSwingArm::PACKET_ID => self.handle_swing_arm(server, SSwingArm::read(bytebuf)), + SSwingArm::PACKET_ID => self.handle_swing_arm(server, SSwingArm::read(bytebuf).unwrap()), _ => log::error!("Failed to handle player packet id {}", packet.id.0), } }