azalea::disconnect

Function remove_components_from_disconnected_players

Source
pub fn remove_components_from_disconnected_players(
    commands: Commands<'_, '_>,
    events: EventReader<'_, '_, DisconnectEvent>,
)
Expand description

System that removes the JoinedClientBundle from the entity when it receives a DisconnectEvent.