1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 08:13:35 +08:00
This commit is contained in:
2024-05-06 18:26:30 +08:00
parent 830a242f37
commit 1ebcb49536

View File

@@ -52,6 +52,7 @@ public static class FactoryPatch
QuickBuildAndDismantleLab.Enable(QuickBuildAndDismantleLabsEnabled.Value); QuickBuildAndDismantleLab.Enable(QuickBuildAndDismantleLabsEnabled.Value);
ProtectVeinsFromExhaustion.Enable(ProtectVeinsFromExhaustionEnabled.Value); ProtectVeinsFromExhaustion.Enable(ProtectVeinsFromExhaustionEnabled.Value);
DoNotRenderEntities.Enable(DoNotRenderEntitiesEnabled.Value); DoNotRenderEntities.Enable(DoNotRenderEntitiesEnabled.Value);
DragBuildPowerPoles.Enable(true);
_factoryPatch ??= Harmony.CreateAndPatchAll(typeof(FactoryPatch)); _factoryPatch ??= Harmony.CreateAndPatchAll(typeof(FactoryPatch));
} }
@@ -70,6 +71,7 @@ public static class FactoryPatch
QuickBuildAndDismantleLab.Enable(false); QuickBuildAndDismantleLab.Enable(false);
ProtectVeinsFromExhaustion.Enable(false); ProtectVeinsFromExhaustion.Enable(false);
DoNotRenderEntities.Enable(false); DoNotRenderEntities.Enable(false);
DragBuildPowerPoles.Enable(false);
_factoryPatch?.UnpatchSelf(); _factoryPatch?.UnpatchSelf();
_factoryPatch = null; _factoryPatch = null;
@@ -1527,7 +1529,6 @@ public static class FactoryPatch
} }
} }
private static class DragBuildPowerPoles private static class DragBuildPowerPoles
{ {
private static Harmony _patch; private static Harmony _patch;