Skip to content

Commit

Permalink
Updated README with STFU fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-bures committed Aug 1, 2023
1 parent 3eda159 commit b4e5ed7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project aims to bring together community bug fixes for Kerbal Space Program
- **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.
- **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)._
- **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.
- **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.
- **Suppress Transmissions Falsely Urgent Fix** by [schlosrat](https://github.com/schlosrat) - Suppresses unhelpful map view log messages.

## Planned fixes
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.
Expand Down
2 changes: 1 addition & 1 deletion src/Fix/STFUFix/BogusMessageSuppressionFix.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace CommunityFixes.Fix.STFUFix;

[Fix("Suspress bogus and unhelpful log messages")]
[Fix("Suppress bogus and unhelpful log messages")]
public class SuppressTransmissionsFalselyUrgentFix : BaseFix
{
public static SuppressTransmissionsFalselyUrgentFix Instance;
Expand Down
8 changes: 4 additions & 4 deletions src/Fix/STFUFix/STFUPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ internal class STFUPatches
public static bool BetterUpdateViewForOrbiter(Map3DTrajectoryEvents __instance, OrbiterComponent orbiter)
{
if (orbiter == null)
GlobalLog.Warn((object)"GenerateEventsForVessel() called with vessel.Orbiter == null! Events will not be updated");
GlobalLog.Warn("GenerateEventsForVessel() called with vessel.Orbiter == null! Events will not be updated");
else if (orbiter.PatchedConicSolver == null)
{
var activeVessel = GameManager.Instance?.Game?.ViewController?.GetActiveVehicle(true)?.GetSimVessel(true);
var currentTarget = activeVessel?.TargetObject;
if (!currentTarget.IsCelestialBody)
GlobalLog.Warn((object)"GenerateEventsForVessel() called with vessel.Orbiter.patchedConicSolver == null. Events will not be updated");
GlobalLog.Warn("GenerateEventsForVessel() called with vessel.Orbiter.patchedConicSolver == null. Events will not be updated");
}
else if ((UnityEngine.Object)__instance._mapCamera?.UnityCamera == (UnityEngine.Object)null)
else if (__instance._mapCamera?.UnityCamera == null)
{
GlobalLog.Warn((object)"GenerateEventsForVessel() called with a null map camera. Events will not be updated");
GlobalLog.Warn("GenerateEventsForVessel() called with a null map camera. Events will not be updated");
}
else
{
Expand Down

0 comments on commit b4e5ed7

Please sign in to comment.