Skip to content

Commit edefff9

Browse files
committed
change FlightPerf patch back to using prefixes
-overrides are coming in the other branch
1 parent d16c58a commit edefff9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

KSPCommunityFixes/Performance/FlightPerf.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ internal class FlightPerf : BasePatch
1616
{
1717
protected override void ApplyPatches()
1818
{
19-
AddPatch(PatchType.Override, typeof(FlightIntegrator), nameof(FlightIntegrator.UpdateOcclusionSolar));
20-
AddPatch(PatchType.Override, typeof(FlightIntegrator), nameof(FlightIntegrator.UpdateOcclusionBody));
21-
AddPatch(PatchType.Override, typeof(FlightIntegrator), nameof(FlightIntegrator.UpdateMassStats));
22-
AddPatch(PatchType.Override, typeof(VesselPrecalculate), nameof(VesselPrecalculate.CalculatePhysicsStats));
19+
AddPatch(PatchType.Prefix, typeof(FlightIntegrator), nameof(FlightIntegrator.UpdateOcclusionSolar));
20+
AddPatch(PatchType.Prefix, typeof(FlightIntegrator), nameof(FlightIntegrator.UpdateOcclusionBody));
21+
AddPatch(PatchType.Prefix, typeof(FlightIntegrator), nameof(FlightIntegrator.UpdateMassStats));
22+
AddPatch(PatchType.Prefix, typeof(VesselPrecalculate), nameof(VesselPrecalculate.CalculatePhysicsStats));
2323

2424
// other offenders, in aero situations :
2525

0 commit comments

Comments
 (0)