Skip to content

Commit

Permalink
Fix: Clientbound remove entities
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Aug 9, 2024
1 parent f122b47 commit e96f072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pumpkin-protocol/src/client/play/c_remove_entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ use crate::VarInt;
#[derive(Serialize, Clone)]
#[packet(0x42)]
pub struct CRemoveEntities {
count: VarInt,
entitiy_ids: Vec<VarInt>,
}

impl CRemoveEntities {
pub fn new(entitiy_ids: Vec<VarInt>) -> Self {
Self { entitiy_ids }
Self { count: VarInt(entitiy_ids.len() as i32), entitiy_ids }
}
}

0 comments on commit e96f072

Please sign in to comment.