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), } }