diff --git a/Facepunch.Steamworks/Interfaces/Workshop.cs b/Facepunch.Steamworks/Interfaces/Workshop.cs index a305af2..9491e2e 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.cs @@ -29,8 +29,7 @@ public partial class Workshop : IDisposable /// /// Called when an item has been downloaded. This could have been - /// because of a call to Download or because of a subscription triggered - /// via the browser/app. + /// because of a call to Download. /// public event Action OnFileDownloaded; @@ -39,7 +38,7 @@ public partial class Workshop : IDisposable /// because of a call to Download or because of a subscription triggered /// via the browser/app. /// - internal event Action OnItemInstalled; + public event Action OnItemInstalled; internal Workshop( BaseSteamworks steamworks, SteamNative.SteamUGC ugc, SteamNative.SteamRemoteStorage remoteStorage ) { @@ -67,7 +66,7 @@ public void Dispose() private void onItemInstalled( SteamNative.ItemInstalled_t obj, bool failed ) { - if ( OnItemInstalled != null ) + if ( OnItemInstalled != null && obj.AppID == Client.Instance.AppId ) OnItemInstalled( obj.PublishedFileId ); }