mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
updated Workshop.onDownloadResult method to ensure that the item's app ID matches the client app id, as described in the DownloadItemResult_t Steamworks documentation
This commit is contained in:
parent
bf21cb9df3
commit
3ecd7e4e4e
@ -73,7 +73,7 @@ private void onItemInstalled( SteamNative.ItemInstalled_t obj, bool failed )
|
||||
|
||||
private void onDownloadResult( SteamNative.DownloadItemResult_t obj, bool failed )
|
||||
{
|
||||
if ( OnFileDownloaded != null )
|
||||
if ( OnFileDownloaded != null && obj.AppID == Client.Instance.AppId )
|
||||
OnFileDownloaded( obj.PublishedFileId, (Callbacks.Result) obj.Result );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user