Hotfix 1.1.18.1

This commit is contained in:
Markus Isberg
2023-10-20 18:05:28 +03:00
parent df7e8f1625
commit 6cc82976a1
19 changed files with 164 additions and 58 deletions
@@ -294,6 +294,11 @@ namespace Barotrauma.Extensions
.Where(nullable => nullable.HasValue)
.Select(nullable => nullable.Value);
public static IEnumerable<T> NotNull<T>(this IEnumerable<T> source) where T : class
=> source
.Where(nullable => nullable != null)
.Select(nullable => nullable!);
public static IEnumerable<T> NotNone<T>(this IEnumerable<Option<T>> source)
{
foreach (var o in source)