aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/packet_handling/mod.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-02-18 02:25:20 -0600
committermat <git@matdoes.dev>2024-02-18 02:25:27 -0600
commit69f7eebcb300bbefdc8b10c191a09db250bde630 (patch)
tree9701ba4bbc8c93429d1ac61dfe3ff40ff36fa9b7 /azalea-client/src/packet_handling/mod.rs
parente08f2d842b7e4aad4e63a83bb9b30e53330d6139 (diff)
downloadazalea-drasl-69f7eebcb300bbefdc8b10c191a09db250bde630.tar.xz
fix for hypixel (wasn't sending ClientInformation on configuration)
Diffstat (limited to 'azalea-client/src/packet_handling/mod.rs')
-rw-r--r--azalea-client/src/packet_handling/mod.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/azalea-client/src/packet_handling/mod.rs b/azalea-client/src/packet_handling/mod.rs
index 9823035d..19de27eb 100644
--- a/azalea-client/src/packet_handling/mod.rs
+++ b/azalea-client/src/packet_handling/mod.rs
@@ -49,10 +49,22 @@ impl Plugin for PacketHandlerPlugin {
login::process_packet_events,
),
)
- .add_systems(Update, death_event_on_0_health.before(death_listener))
+ .add_systems(
+ Update,
+ (
+ (
+ configuration::handle_send_packet_event,
+ game::handle_send_packet_event,
+ )
+ .chain(),
+ death_event_on_0_health.before(death_listener),
+ ),
+ )
// we do this instead of add_event so we can handle the events ourselves
.init_resource::<Events<game::PacketEvent>>()
.init_resource::<Events<configuration::ConfigurationPacketEvent>>()
+ .add_event::<game::SendPacketEvent>()
+ .add_event::<configuration::SendConfigurationPacketEvent>()
.add_event::<AddPlayerEvent>()
.add_event::<RemovePlayerEvent>()
.add_event::<UpdatePlayerEvent>()