From 3ecd7e4e4e98a9529141ce53d7420fa4509f42f9 Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 10 Jul 2017 18:05:34 -0400 Subject: [PATCH] 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 --- Facepunch.Steamworks/Interfaces/Workshop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Interfaces/Workshop.cs b/Facepunch.Steamworks/Interfaces/Workshop.cs index 27e04e1..a305af2 100644 --- a/Facepunch.Steamworks/Interfaces/Workshop.cs +++ b/Facepunch.Steamworks/Interfaces/Workshop.cs @@ -73,7 +73,7 @@ namespace Facepunch.Steamworks 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 ); }