v0.10.5.1

This commit is contained in:
Juan Pablo Arce
2020-09-22 11:31:56 -03:00
parent 44032d0ae0
commit 0002ad2c50
343 changed files with 12276 additions and 5023 deletions
@@ -88,9 +88,8 @@ namespace Barotrauma
DebugConsole.ThrowError($"Prefab \"{prefab.OriginalName}\" has no identifier!");
}
List<T> list = null;
List<T> newList = null;
if (!prefabs.TryGetValue(prefab.Identifier, out list))
if (!prefabs.TryGetValue(prefab.Identifier, out List<T> list))
{
newList = new List<T>(); newList.Add(null);
list = newList;
@@ -177,7 +176,8 @@ namespace Barotrauma
{
if (list.Count <= 1) { return; }
var newList = list.Skip(1).OrderByDescending(p => GameMain.Config.SelectedContentPackages.IndexOf(p.ContentPackage)).ToList();
var newList = list.Skip(1)
.OrderByDescending(p => GameMain.Config.EnabledRegularPackages.IndexOf(p.ContentPackage)).ToList();
list.RemoveRange(1, list.Count - 1);
list.AddRange(newList);