Skip to content

Commit

Permalink
Fix missing lilith area
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumner Rittby committed Nov 6, 2020
1 parent 038d33c commit 3f87ae3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions BorderlandsDiscordRP/Integration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ public static int Create()
return 1;
}

var process = Process.Start(Path.Combine(dir, game));
setupClient();
Process process = Process.Start(Path.Combine(dir, game));
Thread child = setupClient();
process.WaitForExit();
client.ClearPresence();
child.Abort();

//Testing Code
//ManualResetEvent Wait = new ManualResetEvent(false);
Expand All @@ -95,7 +96,7 @@ public static int Create()
#endregion

#region Setup
private static void setupClient()
private static Thread setupClient()
{
connected = false;

Expand Down Expand Up @@ -127,6 +128,8 @@ private static void setupClient()
while (childThread.IsAlive)
continue;

return childThread;

}

public static void CallToChildThread()
Expand Down Expand Up @@ -414,7 +417,7 @@ private static string mapFileToActualMap(string map)
return "Wam Bam Island";
#endregion
#region Lilith
if (map.StartsWith("sanctintro"))
if (map.StartsWith("sanctintro") || map.StartsWith("gaiussanctuary"))
return "Sanctuary";
if (map.StartsWith("backburner"))
return "The Backburner";
Expand Down

0 comments on commit 3f87ae3

Please sign in to comment.