cleanup (cargo fmt)

This commit is contained in:
yuni 2024-07-14 21:16:19 +02:00
parent f2ed30a5b6
commit 20b2ae049a
4 changed files with 5 additions and 10 deletions

View file

@ -491,7 +491,8 @@ pub fn handle_vehicle_enter_exit(
commands.entity(driver).insert(collider.clone());
}
if let Ok(mut flashlight_trans) = q_playerflashlight.get_single_mut() {
flashlight_trans.rotation = Quat::from_rotation_y(180f32.to_radians());
flashlight_trans.rotation =
Quat::from_rotation_y(180f32.to_radians());
flashlight_trans.translation = Vec3::new(0.0, 0.0, 1.0);
}
commands.entity(driver).insert(RigidBody::Dynamic);

View file

@ -36,8 +36,7 @@ impl Plugin for CameraPlugin {
app.add_systems(Update, update_map_only_object_visibility.run_if(alive));
app.add_systems(
PostUpdate,
manage_player_actor
.in_set(sync::SyncSet::PositionToTransform),
manage_player_actor.in_set(sync::SyncSet::PositionToTransform),
);
app.add_systems(
PostUpdate,

View file

@ -507,9 +507,7 @@ fn handle_achievement_event(
}
AchievementEvent::InJupitersShadow => {
if !tracker.in_jupiters_shadow {
ew_game.send(GameEvent::Achievement(
"Enter Jupiter's Shadow".into(),
));
ew_game.send(GameEvent::Achievement("Enter Jupiter's Shadow".into()));
}
tracker.in_jupiters_shadow = true;
}

View file

@ -415,10 +415,7 @@ impl AchievementTracker {
(self.ride_every_vehicle, "ride every vehicle".into()),
(self.talk_to_everyone, "talk to everyone".into()),
(self.find_earth, "find Earth".into()),
(
self.in_jupiters_shadow,
"enter Jupiter's shadow".into(),
),
(self.in_jupiters_shadow, "enter Jupiter's shadow".into()),
]
}
pub fn to_summary(&self) -> String {