Skip to content

Commit

Permalink
Update serverip.txt path
Browse files Browse the repository at this point in the history
  • Loading branch information
Plextora committed May 29, 2024
1 parent 5f47f9c commit bb5bc22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LatiteInjector/Utils/DiscordPresence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public static void DetailedPlayingPresence(object? sender, ElapsedEventArgs e)
if (!SettingsWindow.IsDiscordPresenceEnabled || !Injector.IsMinecraftRunning()) return;

string serverIP = "none";
if (File.Exists($@"{Logging.LatiteFolder}\Logs\serverip.txt"))
serverIP = File.ReadAllText($@"{Logging.LatiteFolder}\Logs\serverip.txt");
if (File.Exists($@"{Logging.LatiteFolder}\serverip.txt"))
serverIP = File.ReadAllText($@"{Logging.LatiteFolder}\serverip.txt");

if (SupportedPresenceDict.TryGetValue(serverIP, out PresenceDetails presenceDetails))
{
Expand Down

0 comments on commit bb5bc22

Please sign in to comment.