new-horizons/NewHorizons/Patches/MeteorControllerPatches.cs
2023-03-18 13:30:22 -04:00

17 lines
488 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.
__instance.gameObject.SetActive(true);
}
}
}