mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 08:13:35 +08:00
WIP
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user