Skip to content

Commit b4e5ed7

Browse files
committed
Updated README with STFU fix
1 parent 3eda159 commit b4e5ed7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project aims to bring together community bug fixes for Kerbal Space Program
1010
- **KSP 2 Save Fix** by [jayouimet](https://github.com/jayouimet) - Replaces the Control Owner Part to the first available Command module or to the Root part if not found when it is set to null.
1111
- **Vessel Landed State Fix*** by [munix](https://github.com/jan-bures) - Checks if the vessel's state is Landed when not actually near the ground and resets it. <br> _*This fix is experimental and untested for now - if you are experiencing the bug with its fix enabled, please create an issue [here](https://github.com/Bit-Studios/CommunityFixes/issues)._
1212
- **Velocity Display Precision Fix** by [arthomnix](https://github.com/arthomnix) - Fixes the digit after the decimal point on the navball velocity display always being zero at velocities above 100m/s.
13-
- **Better Node Check Fix** by [schlosrat](https://github.com/schlosrat) - Fixes not being able to create maneuver nodes when there isn't enough engine ∆v. Can be configured to either always allow creating nodes, or only with enough combined engine and RCS ∆v.
13+
- **Suppress Transmissions Falsely Urgent Fix** by [schlosrat](https://github.com/schlosrat) - Suppresses unhelpful map view log messages.
1414

1515
## Planned fixes
1616
To see what fixes are planned to be implemented, you can visit the [Issues page](https://github.com/Bit-Studios/CommunityFixes/issues) on the project's GitHub.

src/Fix/STFUFix/BogusMessageSuppressionFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace CommunityFixes.Fix.STFUFix;
55

6-
[Fix("Suspress bogus and unhelpful log messages")]
6+
[Fix("Suppress bogus and unhelpful log messages")]
77
public class SuppressTransmissionsFalselyUrgentFix : BaseFix
88
{
99
public static SuppressTransmissionsFalselyUrgentFix Instance;

src/Fix/STFUFix/STFUPatches.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ internal class STFUPatches
1212
public static bool BetterUpdateViewForOrbiter(Map3DTrajectoryEvents __instance, OrbiterComponent orbiter)
1313
{
1414
if (orbiter == null)
15-
GlobalLog.Warn((object)"GenerateEventsForVessel() called with vessel.Orbiter == null! Events will not be updated");
15+
GlobalLog.Warn("GenerateEventsForVessel() called with vessel.Orbiter == null! Events will not be updated");
1616
else if (orbiter.PatchedConicSolver == null)
1717
{
1818
var activeVessel = GameManager.Instance?.Game?.ViewController?.GetActiveVehicle(true)?.GetSimVessel(true);
1919
var currentTarget = activeVessel?.TargetObject;
2020
if (!currentTarget.IsCelestialBody)
21-
GlobalLog.Warn((object)"GenerateEventsForVessel() called with vessel.Orbiter.patchedConicSolver == null. Events will not be updated");
21+
GlobalLog.Warn("GenerateEventsForVessel() called with vessel.Orbiter.patchedConicSolver == null. Events will not be updated");
2222
}
23-
else if ((UnityEngine.Object)__instance._mapCamera?.UnityCamera == (UnityEngine.Object)null)
23+
else if (__instance._mapCamera?.UnityCamera == null)
2424
{
25-
GlobalLog.Warn((object)"GenerateEventsForVessel() called with a null map camera. Events will not be updated");
25+
GlobalLog.Warn("GenerateEventsForVessel() called with a null map camera. Events will not be updated");
2626
}
2727
else
2828
{

0 commit comments

Comments
 (0)