v1.3.0.2
This commit is contained in:
@@ -48,15 +48,19 @@ namespace Barotrauma.Steam
|
|||||||
t =>
|
t =>
|
||||||
{
|
{
|
||||||
msgBox.Close();
|
msgBox.Close();
|
||||||
if (!t.TryGetResult(out Steamworks.Ugc.Item?[]? itemsNullable)) { return; }
|
if (!t.TryGetResult(out Option<Steamworks.Ugc.Item>[]? itemOptions)) { return; }
|
||||||
|
|
||||||
var items = itemsNullable
|
List<Steamworks.Ugc.Item> itemsToDownload = new List<Steamworks.Ugc.Item>();
|
||||||
.Where(it => it.HasValue)
|
foreach (Option<Steamworks.Ugc.Item> itemOption in itemOptions)
|
||||||
.Select(it => it ?? default)
|
{
|
||||||
.ToArray();
|
if (itemOption.TryUnwrap(out var item))
|
||||||
|
{
|
||||||
|
itemsToDownload.Add(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
items.ForEach(it => it.Subscribe());
|
itemsToDownload.ForEach(it => it.Subscribe());
|
||||||
InitiateDownloads(items, onComplete: () =>
|
InitiateDownloads(itemsToDownload, onComplete: () =>
|
||||||
{
|
{
|
||||||
ContentPackageManager.UpdateContentPackageList();
|
ContentPackageManager.UpdateContentPackageList();
|
||||||
GameMain.Instance.ConnectCommand = Option<ConnectCommand>.Some(rejoinCommand);
|
GameMain.Instance.ConnectCommand = Option<ConnectCommand>.Some(rejoinCommand);
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
v1.3.0.2
|
||||||
|
-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- Fixed inability to download missing mods from the Steam Workshop when you're joining a server.
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
v1.3.0.1
|
v1.3.0.1
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user