mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Merge remote-tracking branch 'origin/eye-of-the-universe' into eye-of-the-universe
This commit is contained in:
commit
13f159e0ad
@ -54,7 +54,7 @@ namespace NewHorizons.Handlers
|
|||||||
vesselSectorTriggerBox.size = new Vector3(600, 600, 600);
|
vesselSectorTriggerBox.size = new Vector3(600, 600, 600);
|
||||||
vesselSectorTriggerBox.SetLayer(Shape.Layer.Sector);
|
vesselSectorTriggerBox.SetLayer(Shape.Layer.Sector);
|
||||||
|
|
||||||
// Why were the vessel's lights inside the eye? Let's move them from the eye to vessel.
|
// Why were the vessel's lights inside the eye? Let's move them from the eye to vessel. Doesn't need to be moved positionally, only need to have the parent changed to vessel.
|
||||||
var vesselPointlight = eyeSector.gameObject.FindChild("Pointlight_NOM_Vessel");
|
var vesselPointlight = eyeSector.gameObject.FindChild("Pointlight_NOM_Vessel");
|
||||||
vesselPointlight.transform.SetParent(vesselSector.transform, true);
|
vesselPointlight.transform.SetParent(vesselSector.transform, true);
|
||||||
var vesselSpotlight = eyeSector.gameObject.FindChild("Spotlight_NOM_Vessel");
|
var vesselSpotlight = eyeSector.gameObject.FindChild("Spotlight_NOM_Vessel");
|
||||||
|
|||||||
@ -9,6 +9,7 @@ namespace NewHorizons.Patches
|
|||||||
[HarmonyPatch(typeof(MeteorController), nameof(MeteorController.Suspend), new System.Type[0])]
|
[HarmonyPatch(typeof(MeteorController), nameof(MeteorController.Suspend), new System.Type[0])]
|
||||||
public static void MeteorController_Suspend(MeteorController __instance)
|
public static void MeteorController_Suspend(MeteorController __instance)
|
||||||
{
|
{
|
||||||
|
// Meteors launch inactive because of prefab. So let's fix that.
|
||||||
__instance.gameObject.SetActive(true);
|
__instance.gameObject.SetActive(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,6 +58,7 @@ namespace NewHorizons.Patches
|
|||||||
|
|
||||||
if (__instance._mindSlideCollection == mindSlideCollection) return false;
|
if (__instance._mindSlideCollection == mindSlideCollection) return false;
|
||||||
|
|
||||||
|
// Original method didn't check if old _slideCollectionItem was null.
|
||||||
if (__instance._slideCollectionItem != null)
|
if (__instance._slideCollectionItem != null)
|
||||||
{
|
{
|
||||||
__instance._slideCollectionItem.onSlideTextureUpdated -= __instance.OnSlideTextureUpdated;
|
__instance._slideCollectionItem.onSlideTextureUpdated -= __instance.OnSlideTextureUpdated;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user