mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(CheatEnabler): initialize shield after instant build
This commit is contained in:
1 parent
0e09c17ea0
commit
f611f2f9b3
3 files changed
+12
No files matched your search
@@ -59,6 +59,14 @@ internal class CargoTrafficPatch : PatchImpl<CargoTrafficPatch>
|
||||
_anyBelt = false;
|
||||
factory.planet.physics?.raycastLogic?.NotifyBatchObjectRemove();
|
||||
factory.planet.audio?.SetPlanetAudioDirty();
|
||||
|
||||
var atField = factory.planetATField;
|
||||
var defenseSystem = factory.defenseSystem;
|
||||
if (atField != null && defenseSystem != null &&
|
||||
defenseSystem.fieldGenerators.count > 0 && atField.physicsArgs == null)
|
||||
{
|
||||
atField.UpdatePhysicsShape(updateGeneratorMatrix: true);
|
||||
}
|
||||
}
|
||||
|
||||
public static void TryEndBatchBuilding(PlanetFactory factory)
|
||||
|
||||
Reference in new issue
Block a user