Skip to content

Commit

Permalink
fix explosion packet (#527)
Browse files Browse the repository at this point in the history
# Objective

fix explosion packet

# Solution

fix some of the fields in accordance with
https://wiki.vg/Protocol#Explosion.
  • Loading branch information
JackCrumpLeys authored Sep 18, 2023
1 parent e38ab81 commit 06e1417
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/valence_protocol/src/packets/play/explosion_s2c.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use std::borrow::Cow;

use valence_math::DVec3;
use valence_math::{DVec3, Vec3};

use crate::{BlockPos, Decode, Encode, Packet, Velocity};
use crate::{Decode, Encode, Packet};

#[derive(Clone, Debug, Encode, Decode, Packet)]
pub struct ExplosionS2c<'a> {
pub pos: DVec3,
pub radius: f32,
pub affected_blocks: Cow<'a, [BlockPos]>,
pub player_velocity: Velocity,
pub strength: f32,
pub affected_blocks: Cow<'a, [[i8; 3]]>,
pub player_motion: Vec3,
}

0 comments on commit 06e1417

Please sign in to comment.