diff --git a/pumpkin-protocol/src/client/play/c_remove_entities.rs b/pumpkin-protocol/src/client/play/c_remove_entities.rs index e8dab896d..22477d744 100644 --- a/pumpkin-protocol/src/client/play/c_remove_entities.rs +++ b/pumpkin-protocol/src/client/play/c_remove_entities.rs @@ -6,11 +6,12 @@ use crate::VarInt; #[derive(Serialize, Clone)] #[packet(0x42)] pub struct CRemoveEntities { + count: VarInt, entitiy_ids: Vec, } impl CRemoveEntities { pub fn new(entitiy_ids: Vec) -> Self { - Self { entitiy_ids } + Self { count: VarInt(entitiy_ids.len() as i32), entitiy_ids } } }