Unstable 0.17.8.0
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ namespace Barotrauma
|
||||
|
||||
public override void UnloadFile()
|
||||
{
|
||||
SubmarineInfo.RefreshSavedSub(Path.Value);
|
||||
SubmarineInfo.RemoveSavedSub(Path.Value);
|
||||
}
|
||||
|
||||
public override void Sort()
|
||||
|
||||
+12
-5
@@ -469,15 +469,22 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
var corePackageElement = contentPackagesElement.GetChildElement(CorePackageElementName);
|
||||
var configEnabledCorePackage = findPackage(CorePackages, corePackageElement);
|
||||
if (configEnabledCorePackage == null)
|
||||
if (corePackageElement == null)
|
||||
{
|
||||
string packageStr = corePackageElement.GetAttributeString("name", null) ?? corePackageElement.GetAttributeStringUnrestricted("path", "UNKNOWN");
|
||||
DebugConsole.ThrowError($"Could not find the selected core package \"{packageStr}\". Switching to the \"{enabledCorePackage.Name}\" package.");
|
||||
DebugConsole.AddWarning($"No core package selected. Switching to the \"{enabledCorePackage.Name}\" package.");
|
||||
}
|
||||
else
|
||||
{
|
||||
enabledCorePackage = configEnabledCorePackage;
|
||||
var configEnabledCorePackage = findPackage(CorePackages, corePackageElement);
|
||||
if (configEnabledCorePackage == null)
|
||||
{
|
||||
string packageStr = corePackageElement.GetAttributeString("name", null) ?? corePackageElement.GetAttributeStringUnrestricted("path", "UNKNOWN");
|
||||
DebugConsole.ThrowError($"Could not find the selected core package \"{packageStr}\". Switching to the \"{enabledCorePackage.Name}\" package.");
|
||||
}
|
||||
else
|
||||
{
|
||||
enabledCorePackage = configEnabledCorePackage;
|
||||
}
|
||||
}
|
||||
|
||||
var regularPackagesElement = contentPackagesElement.GetChildElement(RegularPackagesElementName);
|
||||
|
||||
Reference in New Issue
Block a user