mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
18 lines
525 B
C#
18 lines
525 B
C#
using HarmonyLib;
|
|
|
|
namespace NewHorizons.Patches
|
|
{
|
|
[HarmonyPatch(typeof(MeteorController))]
|
|
public static class MeteorControllerPatches
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(nameof(MeteorController.Suspend), new System.Type[0])]
|
|
public static void MeteorController_Suspend(MeteorController __instance)
|
|
{
|
|
// Meteors launch inactive because of prefab. So let's fix that.
|
|
// how tf does this work
|
|
__instance.gameObject.SetActive(true);
|
|
}
|
|
}
|
|
}
|