1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 02:13:29 +08:00
This commit is contained in:
2023-10-08 22:55:12 +08:00
parent 74c3c57f13
commit 9d601e1cbc
2 changed files with 23 additions and 11 deletions

View File

@@ -195,13 +195,8 @@ public static class PlanetFunctions
factory.blockContainer.RemoveMiniBlock(ed.mmblockId);
}
if (ed.audioId != 0)
{
if (planet.audio != null)
{
planet.audio.RemoveAudioData(ed.audioId);
}
}
if (ed.audioId == 0) continue;
planet.audio?.RemoveAudioData(ed.audioId);
}
var stationPool = factory.transport?.stationPool;
@@ -264,6 +259,10 @@ public static class PlanetFunctions
factory.transport = new PlanetTransport(GameMain.data, planet);
factory.transport.Init();
factory.digitalSystem = new DigitalSystem(planet);
if (FactoryPatch.BeltSignalGeneratorEnabled.Value)
{
FactoryPatch.BeltSignalGenerator.RemovePlanetSignalBelts(factory.index);
}
//GameMain.data.statistics.production.CreateFactoryStat(index);
planet.LoadFactory();
while (!planet.factoryLoaded)