No more infinite load when warping back to Outer Wilds system with vessel (#908)

## Bug fixes

- No more infinite load when warping back to Outer Wilds system with
vessel
This commit is contained in:
Noah Pilarski 2024-06-17 20:35:20 -04:00 committed by GitHub
commit 773ef3089f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,6 +98,9 @@ namespace NewHorizons.Handlers
{
if (Instance.CurrentStarSystem == "SolarSystem")
{
//Deactivate lock since we aren't in timber anymore
GameObject.Destroy(SearchUtilities.Find("TimberHearth_Body/StreamingGroup_TH").GetComponent<StreamingLock>());
// Deactivate village music because for some reason it still plays.
SearchUtilities.Find("TimberHearth_Body/Sector_TH/Sector_Village/Volumes_Village/MusicVolume_Village").GetComponent<VillageMusicVolume>().Deactivate();