Skip to content

Commit

Permalink
Don't boradcast Equipment Change back to player (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
4lve authored Feb 18, 2025
1 parent e146130 commit dbf58a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pumpkin/src/entity/living.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ impl LivingEntity {
.world
.read()
.await
.broadcast_packet_all(&CSetEquipment::new(self.entity_id().into(), equipment))
.broadcast_packet_except(
&[self.entity.entity_uuid],
&CSetEquipment::new(self.entity_id().into(), equipment),
)
.await;
}

Expand Down

0 comments on commit dbf58a5

Please sign in to comment.