aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/pong.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/pong.rs
parent2c8b7c5c2c9297273abfba8f7743f1bc25f166b1 (diff)
downloadazalea-drasl-a80d8d1b242430c4a251876fa67bfd26af7a0de9.tar.xz
rename SendPacketEvent to SendGamePacketEvent and PingEvent to GamePingEvent
Diffstat (limited to 'azalea-client/src/plugins/pong.rs')
-rw-r--r--azalea-client/src/plugins/pong.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea-client/src/plugins/pong.rs b/azalea-client/src/plugins/pong.rs
index f268a836..6370a932 100644
--- a/azalea-client/src/plugins/pong.rs
+++ b/azalea-client/src/plugins/pong.rs
@@ -4,9 +4,9 @@ use bevy_ecs::prelude::*;
use super::packet::{
config::{ConfigPingEvent, SendConfigPacketEvent},
- game::PingEvent,
+ game::GamePingEvent,
};
-use crate::packet::game::SendPacketEvent;
+use crate::packet::game::SendGamePacketEvent;
/// A plugin that replies to [`ClientboundPing`] packets with
/// [`ServerboundPong`].
@@ -23,8 +23,8 @@ impl Plugin for PongPlugin {
}
}
-pub fn reply_to_game_ping(ping: On<PingEvent>, mut commands: Commands) {
- commands.trigger(SendPacketEvent::new(
+pub fn reply_to_game_ping(ping: On<GamePingEvent>, mut commands: Commands) {
+ commands.trigger(SendGamePacketEvent::new(
ping.entity,
game::ServerboundPong { id: ping.packet.id },
));