Faction Test v1.0.1.0
This commit is contained in:
@@ -403,7 +403,7 @@ namespace Barotrauma.Steam
|
||||
var ids = items.Select(it => it.Id.Value).ToHashSet();
|
||||
var toUninstall = ContentPackageManager.WorkshopPackages
|
||||
.Where(pkg
|
||||
=> !pkg.UgcId.TryUnwrap(out SteamWorkshopId workshopId)
|
||||
=> !pkg.UgcId.TryUnwrap<SteamWorkshopId>(out var workshopId)
|
||||
|| !ids.Contains(workshopId.Value))
|
||||
.ToArray();
|
||||
if (toUninstall.Any())
|
||||
@@ -495,7 +495,8 @@ namespace Barotrauma.Steam
|
||||
new XAttribute("corepackage", isCorePackage),
|
||||
new XAttribute("modversion", modVersion),
|
||||
new XAttribute("gameversion", gameVersion),
|
||||
new XAttribute("installtime", ToolBox.Epoch.FromDateTime(updateTime)));
|
||||
#warning TODO: stop writing Unix time after this gets on main
|
||||
new XAttribute("installtime", new SerializableDateTime(updateTime).ToUnixTime()));
|
||||
if ((modPathDirName ?? modName).ToIdentifier() != itemTitle)
|
||||
{
|
||||
root.Add(new XAttribute("altnames", modPathDirName ?? modName));
|
||||
|
||||
Reference in New Issue
Block a user