Update ModuleEnergyManager to patch OnAnchorStatusChanged instead of OnAttached
This commit is contained in:
@@ -42,7 +42,7 @@ namespace TerraTech {
|
||||
};
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(ModuleEnergy), "OnAttached")]
|
||||
[HarmonyPatch(typeof(ModuleEnergy), "OnAnchorStatusChanged")]
|
||||
static void PostfixCreate(ModuleEnergy __instance) {
|
||||
manager.OnObjectAttached(__instance);
|
||||
}
|
||||
|
Reference in New Issue
Block a user