Skip to content

Commit 107fb04

Browse files
Populate entries at GameNetworkManager Start
1 parent 579fc22 commit 107fb04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CSync/Patches/GameNetworkManagerPatch.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ public static class GameNetworkManagerPatch
1313
[HarmonyPostfix]
1414
public static void OnNetworkManagerStart(GameNetworkManager __instance)
1515
{
16+
ConfigManager.PopulateEntries();
17+
1618
if (NetworkManager.Singleton.NetworkConfig.Prefabs.Contains(ConfigManager.Prefab))
1719
return;
18-
1920
NetworkManager.Singleton.AddNetworkPrefab(ConfigManager.Prefab);
2021
}
2122
}

0 commit comments

Comments
 (0)