aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/packet
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/packet')
-rw-r--r--azalea-client/src/plugins/packet/game/mod.rs18
1 files changed, 3 insertions, 15 deletions
diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs
index fd6b712c..b7886208 100644
--- a/azalea-client/src/plugins/packet/game/mod.rs
+++ b/azalea-client/src/plugins/packet/game/mod.rs
@@ -22,22 +22,9 @@ pub use events::*;
use tracing::{debug, error, trace, warn};
use crate::{
- ClientInformation,
- block_update::QueuedServerBlockUpdates,
- chat::{ChatPacket, ChatReceivedEvent},
- chunks,
- connection::RawConnection,
- declare_packet_handlers,
- disconnect::DisconnectEvent,
- interact::BlockStatePredictionHandler,
- inventory::{
+ block_update::QueuedServerBlockUpdates, chat::{ChatPacket, ChatReceivedEvent}, chunks, connection::RawConnection, declare_packet_handlers, disconnect::DisconnectEvent, interact::BlockStatePredictionHandler, inventory::{
ClientSideCloseContainerEvent, Inventory, MenuOpenedEvent, SetContainerContentEvent,
- },
- loading::HasClientLoaded,
- local_player::{Hunger, InstanceHolder, LocalGameMode, PlayerAbilities, TabList},
- movement::{KnockbackEvent, KnockbackType},
- packet::as_system,
- player::{GameProfileComponent, PlayerInfo},
+ }, loading::HasClientLoaded, local_player::{Hunger, InstanceHolder, LocalGameMode, PlayerAbilities, TabList}, movement::{KnockbackEvent, KnockbackType}, packet::as_system, player::{GameProfileComponent, PlayerInfo}, tick_counter::TicksConnected, ClientInformation
};
pub fn process_packet(ecs: &mut World, player: Entity, packet: &ClientboundGamePacket) {
@@ -299,6 +286,7 @@ impl GamePacketHandler<'_> {
previous: p.common.previous_game_type.into(),
},
entity_bundle,
+ TicksConnected(0),
));
azalea_entity::indexing::add_entity_to_indexes(