diff --git a/Facepunch.Steamworks/SteamFriends.cs b/Facepunch.Steamworks/SteamFriends.cs index fb05f2b..b0cea11 100644 --- a/Facepunch.Steamworks/SteamFriends.cs +++ b/Facepunch.Steamworks/SteamFriends.cs @@ -19,11 +19,13 @@ namespace Steamworks SetInterface( server, new ISteamFriends( server ) ); richPresence = new Dictionary(); + + InstallEvents(); } static Dictionary richPresence; - internal static void InstallEvents() + internal void InstallEvents() { Dispatch.Install( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ) ) ); Dispatch.Install( x => OnGameRichPresenceJoinRequested?.Invoke( new Friend( x.SteamIDFriend), x.ConnectUTF8() ) );