diff options
| author | mat <git@matdoes.dev> | 2025-03-25 05:16:10 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-25 05:16:10 +0000 |
| commit | 8af265e48bf9f3d5263c074d034770e4216bb3f3 (patch) | |
| tree | 2605ce1d6ed8c74d47b6c355e6918721b0dc07aa /azalea-client/src/plugins/packet/game/mod.rs | |
| parent | 4c53498f0795f821066941f39917ad2e4fa9a3cc (diff) | |
| download | azalea-drasl-8af265e48bf9f3d5263c074d034770e4216bb3f3.tar.xz | |
PongPlugin
Diffstat (limited to 'azalea-client/src/plugins/packet/game/mod.rs')
| -rw-r--r-- | azalea-client/src/plugins/packet/game/mod.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index 1e9232bf..cc67bcd7 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -1363,10 +1363,7 @@ impl GamePacketHandler<'_> { debug!("Got ping packet {p:?}"); as_system::<Commands>(self.ecs, |mut commands| { - commands.trigger(SendPacketEvent::new( - self.player, - ServerboundPong { id: p.id }, - )); + commands.trigger_targets(PingEvent(p.clone()), self.player); }); } |
