mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 13:45:37 +03:00
Merge pull request #45 from richdog/master
Updated Workshop.onDownloadResult to compare downloaded item's application to current application
This commit is contained in:
commit
ed632baf38
@ -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