RichPresence enable guard

This commit is contained in:
Nick 2022-08-25 23:35:42 -04:00
parent a447b80307
commit 9f02302d7f

View File

@ -52,6 +52,8 @@ namespace NewHorizons.OtherMods.OWRichPresence
public static void OnStarSystemLoaded(string name)
{
if (!Enabled) return;
if (name == "SolarSystem") return;
var localizedName = ShipLogStarChartMode.UniqueIDToName(name);
@ -62,6 +64,8 @@ namespace NewHorizons.OtherMods.OWRichPresence
public static void OnChangeStarSystem(string destination)
{
if (!Enabled) return;
var localizedName = ShipLogStarChartMode.UniqueIDToName(destination);
var message = TranslationHandler.GetTranslation("RICH_PRESENCE_WARPING", TranslationHandler.TextType.UI).Replace("{0}", localizedName);