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