Update ModuleEnergyManager to patch OnAnchorStatusChanged instead of OnAttached
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user