mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Only destroy daynight/villagemusic on TH
This commit is contained in:
parent
fe8d088870
commit
21d7b369d0
@ -105,12 +105,12 @@ namespace NewHorizons.Handlers
|
|||||||
// Always just fucking kill this one to stop THE WARP BUG!!!
|
// Always just fucking kill this one to stop THE WARP BUG!!!
|
||||||
GameObject.Destroy(SearchUtilities.Find("StreamingGroup_TH").gameObject);
|
GameObject.Destroy(SearchUtilities.Find("StreamingGroup_TH").gameObject);
|
||||||
|
|
||||||
// TODO: These should only destroy those that are on TH
|
var timberHearth = SearchUtilities.Find("TimberHearth_Body");
|
||||||
foreach (var obj in UnityEngine.Object.FindObjectsOfType<DayNightTracker>())
|
foreach (var obj in timberHearth.GetComponentsInChildren<DayNightTracker>())
|
||||||
{
|
{
|
||||||
GameObject.Destroy(obj.gameObject);
|
GameObject.Destroy(obj.gameObject);
|
||||||
}
|
}
|
||||||
foreach (var obj in UnityEngine.Object.FindObjectsOfType<VillageMusicVolume>())
|
foreach (var obj in timberHearth.GetComponentsInChildren<VillageMusicVolume>())
|
||||||
{
|
{
|
||||||
GameObject.Destroy(obj.gameObject);
|
GameObject.Destroy(obj.gameObject);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user