1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-08 21:33:28 +08:00

fix possible crash with performance tweaks

This commit is contained in:
2023-09-22 21:42:38 +08:00
parent 1cb9cb8e96
commit 2ed617a299

View File

@@ -250,9 +250,11 @@ public static class PlanetFunctions
}
factory.entityCursor = 1;
factory.entityRecycleCursor = 0;
factory.entityCapacity = 0;
factory.SetEntityCapacity(1024);
factory.prebuildCursor = 1;
factory.prebuildRecycleCursor = 0;
factory.prebuildCapacity = 0;
factory.SetPrebuildCapacity(256);
factory.cargoContainer = new CargoContainer();
factory.cargoTraffic = new CargoTraffic(planet);