From fe58c4bbb7b8e3c9e43f559932d56995dae3aea0 Mon Sep 17 00:00:00 2001 From: Jason Thompson Date: Thu, 30 Sep 2021 17:52:55 -0500 Subject: [PATCH] Added PersonaChange flags to PersonaStateChange_t callback for SteamFriends --- Facepunch.Steamworks/SteamFriends.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Facepunch.Steamworks/SteamFriends.cs b/Facepunch.Steamworks/SteamFriends.cs index 3a8d338..8ddd3cb 100644 --- a/Facepunch.Steamworks/SteamFriends.cs +++ b/Facepunch.Steamworks/SteamFriends.cs @@ -27,7 +27,7 @@ namespace Steamworks internal void InstallEvents() { - Dispatch.Install( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ) ) ); + Dispatch.Install( x => OnPersonaStateChange?.Invoke( new Friend( x.SteamID ), (PersonaChange)x.ChangeFlags ) ); Dispatch.Install( x => OnGameRichPresenceJoinRequested?.Invoke( new Friend( x.SteamIDFriend), x.ConnectUTF8() ) ); Dispatch.Install( OnFriendChatMessage ); Dispatch.Install( OnGameConnectedClanChatMessage ); @@ -52,7 +52,7 @@ namespace Steamworks /// /// called when a friends' status changes /// - public static event Action OnPersonaStateChange; + public static event Action OnPersonaStateChange; ///