Merge branch 'master' of https://github.com/Regalis11/Barotrauma into develop

This commit is contained in:
EvilFactory
2023-03-13 13:32:14 -03:00
335 changed files with 11052 additions and 5179 deletions
@@ -141,7 +141,18 @@ namespace Barotrauma
}
}
if (items.Contains(item)) { return; }
items.Add(item);
//keep lowest-condition items at the top of the stack
int index = 0;
for (int i = 0; i < items.Count; i++)
{
if (items[i].Condition > item.Condition)
{
break;
}
index++;
}
items.Insert(index, item);
}
/// <summary>