fix vehicle visibility when exiting

This commit is contained in:
yuni 2024-04-03 12:27:43 +02:00
parent 8531a9b8c1
commit 0142d6d77b

View file

@ -332,7 +332,7 @@ pub fn handle_vehicle_enter_exit(
commands.entity(vehicle).remove::<PlayerCamera>();
commands.entity(driver).insert(PlayerCamera);
commands.entity(vehicle).remove::<PlayerDrivesThis>();
*vehicle_vis = Visibility::Inherited;
*vehicle_vis = Visibility::Visible;
}
}
}