Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit b951d32

Browse files
committed
fix: moved invoke of event up so return does not interfere with it
1 parent ae97398 commit b951d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Mirage/Runtime/Transport/FizzySteamyMirror/SteamSocketFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ private void Start()
3838

3939
SteamInitialized = SteamAPI.Init();
4040

41+
OnSteamInitialized?.Invoke(SteamInitialized);
42+
4143
if (!SteamInitialized)
4244
{
4345
Debug.LogError(
4446
"[Steamworks.NET] SteamAPI_Init() failed. Refer to Valve's documentation or the comment above this line for more information.");
4547

4648
return;
4749
}
48-
49-
OnSteamInitialized?.Invoke(SteamInitialized);
5050
}
5151
}
5252

0 commit comments

Comments
 (0)