Skip to content

Commit

Permalink
Fixes for spawnpoint loading exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
CCraigen committed Mar 15, 2024
1 parent 355919b commit cbe34a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GameMod/MPSpawnExtension.cs
Expand Up @@ -15,6 +15,7 @@ namespace GameMod
public static class MPSpawnExtension
{
const string BASE_URL = "https://raw.githubusercontent.com/overload-development-community/ol-map-revisions/main/spawnpoints/";
//const string BASE_URL = "https://raw.githubusercontent.com/CCraigen/ol-map-revisions/main/spawnpoints/"; // testing repo

public static List<LevelData.SpawnPoint> spawnpoints = new List<LevelData.SpawnPoint>();
public static bool DownloadBusy = false;
Expand All @@ -35,7 +36,7 @@ public static void ResetForNewLevel()

public static void CheckExtraSpawnpoints(string name)
{
if (!GameplayManager.IsMultiplayer || DownloadChecked)
if (DownloadChecked || !(GameplayManager.IsDedicatedServer() || GameplayManager.IsMultiplayer))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion GameMod/MPTweaks.cs
Expand Up @@ -160,7 +160,7 @@ class MPTweaksLoadScene
{
private static void Postfix()
{
if (!GameplayManager.IsDedicatedServer())
if (MPDownloadLevel.DownloadBusy || MPSpawnExtension.DownloadBusy || !GameplayManager.IsDedicatedServer())
return;
Debug.Log("MPTweaksLoadScene");
RobotManager.ReadMultiplayerModeFile();
Expand Down

0 comments on commit cbe34a1

Please sign in to comment.