aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/mining.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-09-29 02:01:50 +0700
committermat <git@matdoes.dev>2025-09-29 02:01:50 +0700
commita80d8d1b242430c4a251876fa67bfd26af7a0de9 (patch)
treee683100c2f68fed0729dbaa12e7ef189189350be /azalea-client/src/plugins/mining.rs
parent2c8b7c5c2c9297273abfba8f7743f1bc25f166b1 (diff)
downloadazalea-drasl-a80d8d1b242430c4a251876fa67bfd26af7a0de9.tar.xz
rename SendPacketEvent to SendGamePacketEvent and PingEvent to GamePingEvent
Diffstat (limited to 'azalea-client/src/plugins/mining.rs')
-rw-r--r--azalea-client/src/plugins/mining.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/azalea-client/src/plugins/mining.rs b/azalea-client/src/plugins/mining.rs
index b4f8adbe..499ae71f 100644
--- a/azalea-client/src/plugins/mining.rs
+++ b/azalea-client/src/plugins/mining.rs
@@ -19,7 +19,7 @@ use crate::{
inventory::{Inventory, InventorySet},
local_player::{InstanceHolder, LocalGameMode, PermissionLevel},
movement::MoveEventsSet,
- packet::game::SendPacketEvent,
+ packet::game::SendGamePacketEvent,
};
/// A plugin that allows clients to break blocks in the world.
@@ -258,7 +258,7 @@ pub fn handle_mining_queued(
if game_mode.current == GameMode::Creative {
// In creative mode, first send START_DESTROY_BLOCK packet then immediately
// finish mining
- commands.trigger(SendPacketEvent::new(
+ commands.trigger(SendGamePacketEvent::new(
entity,
ServerboundPlayerAction {
action: s_player_action::Action::StartDestroyBlock,
@@ -283,7 +283,7 @@ pub fn handle_mining_queued(
{
if mining.is_some() {
// send a packet to stop mining since we just changed target
- commands.trigger(SendPacketEvent::new(
+ commands.trigger(SendGamePacketEvent::new(
entity,
ServerboundPlayerAction {
action: s_player_action::Action::AbortDestroyBlock,
@@ -347,7 +347,7 @@ pub fn handle_mining_queued(
});
}
- commands.trigger(SendPacketEvent::new(
+ commands.trigger(SendGamePacketEvent::new(
entity,
ServerboundPlayerAction {
action: s_player_action::Action::StartDestroyBlock,
@@ -525,7 +525,7 @@ pub fn handle_stop_mining_block_event(
let mine_block_pos =
mine_block_pos.expect("IsMining is true so MineBlockPos must be present");
- commands.trigger(SendPacketEvent::new(
+ commands.trigger(SendGamePacketEvent::new(
event.entity,
ServerboundPlayerAction {
action: s_player_action::Action::AbortDestroyBlock,
@@ -589,7 +589,7 @@ pub fn continue_mining_block(
if game_mode.current == GameMode::Creative {
// TODO: worldborder check
**mine_delay = 5;
- commands.trigger(SendPacketEvent::new(
+ commands.trigger(SendGamePacketEvent::new(
entity,
ServerboundPlayerAction {
action: s_player_action::Action::StartDestroyBlock,
@@ -645,7 +645,7 @@ pub fn continue_mining_block(
entity,
position: mining.pos,
});
- commands.trigger(SendPacketEvent::new(
+ commands.trigger(SendGamePacketEvent::new(
entity,
ServerboundPlayerAction {
action: s_player_action::Action::StopDestroyBlock,