Skip to content

Commit

Permalink
move it down the match to be call everytime
Browse files Browse the repository at this point in the history
  • Loading branch information
aure31 committed Dec 30, 2024
1 parent a1b7f3a commit f954f20
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pumpkin/src/net/packet/play.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,10 +723,6 @@ impl Player {
.on_broken(block, self, location, server)
.await;
}

self.client
.send_packet(&CAcknowledgeBlockChange::new(player_action.sequence))
.await;
}
}
Status::CancelledDigging => {
Expand Down Expand Up @@ -765,10 +761,6 @@ impl Player {
.on_broken(block, self, location, server)
.await;
}
// TODO: Send this every tick
self.client
.send_packet(&CAcknowledgeBlockChange::new(player_action.sequence))
.await;
}
Status::DropItemStack
| Status::DropItem
Expand All @@ -779,6 +771,10 @@ impl Player {
},
None => self.kick(TextComponent::text("Invalid status")).await,
}

self.client
.send_packet(&CAcknowledgeBlockChange::new(player_action.sequence))
.await;
}

pub async fn handle_keep_alive(&self, keep_alive: SKeepAlive) {
Expand Down

0 comments on commit f954f20

Please sign in to comment.