1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2026-02-04 17:02:17 +08:00
This commit is contained in:
2025-12-28 23:07:52 +08:00
parent 0d7941387f
commit c339041824
2 changed files with 20 additions and 8 deletions

View File

@@ -263,6 +263,19 @@ public static class PlanetFunctions
factory.factoryStorage = new FactoryStorage(planet);
factory.powerSystem = new PowerSystem(planet);
factory.constructionSystem = new ConstructionSystem(planet);
if (factory.veinPool != null)
{
for (var i = 0; i < factory.veinPool.Length; i++)
{
ref var vein = ref factory.veinPool[i];
if (vein.id != i) continue;
vein.minerCount = 0;
vein.minerId0 = 0;
vein.minerId1 = 0;
vein.minerId2 = 0;
vein.minerId3 = 0;
}
}
factory.InitVeinHashAddress();
factory.RecalculateAllVeinGroups();
factory.InitVegeHashAddress();