From 5d9e4b5c0b977b1c358a7b0f1a180b96ee14825a Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Tue, 25 Feb 2020 19:03:56 +0000 Subject: [PATCH] Fixed SteamFriends events not being hooked --- Facepunch.Steamworks/SteamFriends.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ) );