Merge pull request #45 from richdog/master

Updated  Workshop.onDownloadResult to compare downloaded item's application to current application
This commit is contained in:
Garry Newman 2017-07-11 09:59:43 +01:00 committed by GitHub
commit ed632baf38

View File

@ -73,7 +73,7 @@ namespace Facepunch.Steamworks
private void onDownloadResult( SteamNative.DownloadItemResult_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 ); OnFileDownloaded( obj.PublishedFileId, (Callbacks.Result) obj.Result );
} }