Skip to content

Commit

Permalink
add the missing Acknowledge Block Change packet on interact (#434)
Browse files Browse the repository at this point in the history
* add the missing Acknowledge Block Change packet when the player break a block

* move it down the match to be call everytime
  • Loading branch information
aure31 authored Dec 30, 2024
1 parent a9a7dcc commit 9d770e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pumpkin/src/net/packet/play.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,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 @@ -775,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 9d770e9

Please sign in to comment.