Skip to content

Commit

Permalink
chore(pumpkin/src/net/packet/play): cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DataM0del committed Dec 29, 2024
1 parent 2178d25 commit bbca861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pumpkin/src/net/packet/play.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ impl Player {
}
if victim.entity_id() == self.entity_id() {
// this, however, can't be triggered from a non-modded client.
self.kick(TextComponent::text("You can't attack yourself")).await;
self.kick(TextComponent::text("You can't attack yourself"))
.await;
return;
}
self.attack(&victim).await;
Expand Down

0 comments on commit bbca861

Please sign in to comment.