mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
shut up clippy
This commit is contained in:
parent
0d3a091c23
commit
cbcf1d5e54
2 changed files with 13 additions and 3 deletions
|
@ -582,6 +582,7 @@ fn handle_packets(ecs: &mut Ecs) {
|
|||
ClientboundGamePacket::AddPlayer(p) => {
|
||||
debug!("Got add player packet {:?}", p);
|
||||
|
||||
#[allow(clippy::type_complexity)]
|
||||
let mut system_state: SystemState<(
|
||||
Commands,
|
||||
Query<(&mut LocalPlayer, Option<&WorldName>)>,
|
||||
|
|
|
@ -24,9 +24,18 @@ impl McBufWritable for BlockHitResult {
|
|||
fn write_into(&self, buf: &mut impl Write) -> Result<(), std::io::Error> {
|
||||
self.block_pos.write_into(buf)?;
|
||||
self.direction.write_into(buf)?;
|
||||
f32::write_into(&((self.location.x - f64::from(self.block_pos.x)) as f32), buf)?;
|
||||
f32::write_into(&((self.location.y - f64::from(self.block_pos.y)) as f32), buf)?;
|
||||
f32::write_into(&((self.location.z - f64::from(self.block_pos.z)) as f32), buf)?;
|
||||
f32::write_into(
|
||||
&((self.location.x - f64::from(self.block_pos.x)) as f32),
|
||||
buf,
|
||||
)?;
|
||||
f32::write_into(
|
||||
&((self.location.y - f64::from(self.block_pos.y)) as f32),
|
||||
buf,
|
||||
)?;
|
||||
f32::write_into(
|
||||
&((self.location.z - f64::from(self.block_pos.z)) as f32),
|
||||
buf,
|
||||
)?;
|
||||
self.inside.write_into(buf)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue