Update ModuleEnergyManager to patch OnAnchorStatusChanged instead of OnAttached

This commit is contained in:
2025-02-25 08:42:16 +01:00
parent 7964f8f395
commit acdc4d2a78

View File

@@ -42,7 +42,7 @@ namespace TerraTech {
}; };
[HarmonyPrefix] [HarmonyPrefix]
[HarmonyPatch(typeof(ModuleEnergy), "OnAttached")] [HarmonyPatch(typeof(ModuleEnergy), "OnAnchorStatusChanged")]
static void PostfixCreate(ModuleEnergy __instance) { static void PostfixCreate(ModuleEnergy __instance) {
manager.OnObjectAttached(__instance); manager.OnObjectAttached(__instance);
} }