mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-04-02 16:57:14 +08:00
fix possible crash
This commit is contained in:
@@ -576,7 +576,7 @@ public static class PlanetFunctions
|
|||||||
factory.PlanetReformRevert();
|
factory.PlanetReformRevert();
|
||||||
}
|
}
|
||||||
|
|
||||||
gameData.LeavePlanet();
|
planet.UnloadFactory();
|
||||||
var index = factory.index;
|
var index = factory.index;
|
||||||
var warningSystem = gameData.warningSystem;
|
var warningSystem = gameData.warningSystem;
|
||||||
var warningPool = warningSystem.warningPool;
|
var warningPool = warningSystem.warningPool;
|
||||||
@@ -663,7 +663,12 @@ public static class PlanetFunctions
|
|||||||
factory.digitalSystem = new DigitalSystem(planet);
|
factory.digitalSystem = new DigitalSystem(planet);
|
||||||
|
|
||||||
//GameMain.data.statistics.production.CreateFactoryStat(index);
|
//GameMain.data.statistics.production.CreateFactoryStat(index);
|
||||||
gameData.ArrivePlanet(planet);
|
planet.LoadFactory();
|
||||||
|
while (!planet.factoryLoaded)
|
||||||
|
{
|
||||||
|
PlanetModelingManager.Update();
|
||||||
|
System.Threading.Thread.Sleep(0);
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var kvp in returnedItems)
|
foreach (var kvp in returnedItems)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user