aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_explode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/c_explode.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_explode.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/azalea-protocol/src/packets/game/c_explode.rs b/azalea-protocol/src/packets/game/c_explode.rs
index 2c934c31..be86abb6 100644
--- a/azalea-protocol/src/packets/game/c_explode.rs
+++ b/azalea-protocol/src/packets/game/c_explode.rs
@@ -1,4 +1,4 @@
-use azalea_buf::AzBuf;
+use azalea_buf::{AzBuf, AzaleaRead, AzaleaWrite};
use azalea_core::position::Vec3;
use azalea_entity::particle::Particle;
use azalea_protocol_macros::ClientboundGamePacket;
@@ -12,7 +12,14 @@ pub struct ClientboundExplode {
pub player_knockback: Option<Vec3>,
pub explosion_particle: Particle,
pub explosion_sound: SoundEvent,
- pub block_particles: Vec<ExplosionParticleInfo>,
+ pub block_particles: Vec<Weighted<ExplosionParticleInfo>>,
+}
+
+#[derive(AzBuf, Clone, Debug, PartialEq)]
+pub struct Weighted<T: AzaleaRead + AzaleaWrite> {
+ pub value: T,
+ #[var]
+ pub weight: i32,
}
#[derive(AzBuf, Clone, Debug, PartialEq)]