fix vehicle visibility when exiting
This commit is contained in:
parent
8531a9b8c1
commit
0142d6d77b
|
@ -332,7 +332,7 @@ pub fn handle_vehicle_enter_exit(
|
||||||
commands.entity(vehicle).remove::<PlayerCamera>();
|
commands.entity(vehicle).remove::<PlayerCamera>();
|
||||||
commands.entity(driver).insert(PlayerCamera);
|
commands.entity(driver).insert(PlayerCamera);
|
||||||
commands.entity(vehicle).remove::<PlayerDrivesThis>();
|
commands.entity(vehicle).remove::<PlayerDrivesThis>();
|
||||||
*vehicle_vis = Visibility::Inherited;
|
*vehicle_vis = Visibility::Visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue